convert ncurses binary dump into text

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a ncurses dump (with for example screen recorder from GNU screen)
and I would like to convert it into text



(there are some conversations in it, some lists and other things, all text, but ncurses formatted, like there is a permanent status bar, a clock, etc. and I really don't want to change subject about which ncurses software I use and how to use that to generate text instead a generic solution ... I open this question be cause isn't only one software, there are few, screen recorder from GNU screen is only an example)



if I use less tool to see file it complain about being binary and then show a lot of garbage



if I use cat, I can see the text, but all pages at once, no way to slow it down or interact with it at all (if I add | less ... it will behave like not using cat at all)



same thing with grep, it will only show all lines at once, if it finds the string



so, any ideas ?







share|improve this question





















  • One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
    – ivanivan
    May 29 at 11:45














up vote
1
down vote

favorite












I have a ncurses dump (with for example screen recorder from GNU screen)
and I would like to convert it into text



(there are some conversations in it, some lists and other things, all text, but ncurses formatted, like there is a permanent status bar, a clock, etc. and I really don't want to change subject about which ncurses software I use and how to use that to generate text instead a generic solution ... I open this question be cause isn't only one software, there are few, screen recorder from GNU screen is only an example)



if I use less tool to see file it complain about being binary and then show a lot of garbage



if I use cat, I can see the text, but all pages at once, no way to slow it down or interact with it at all (if I add | less ... it will behave like not using cat at all)



same thing with grep, it will only show all lines at once, if it finds the string



so, any ideas ?







share|improve this question





















  • One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
    – ivanivan
    May 29 at 11:45












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a ncurses dump (with for example screen recorder from GNU screen)
and I would like to convert it into text



(there are some conversations in it, some lists and other things, all text, but ncurses formatted, like there is a permanent status bar, a clock, etc. and I really don't want to change subject about which ncurses software I use and how to use that to generate text instead a generic solution ... I open this question be cause isn't only one software, there are few, screen recorder from GNU screen is only an example)



if I use less tool to see file it complain about being binary and then show a lot of garbage



if I use cat, I can see the text, but all pages at once, no way to slow it down or interact with it at all (if I add | less ... it will behave like not using cat at all)



same thing with grep, it will only show all lines at once, if it finds the string



so, any ideas ?







share|improve this question













I have a ncurses dump (with for example screen recorder from GNU screen)
and I would like to convert it into text



(there are some conversations in it, some lists and other things, all text, but ncurses formatted, like there is a permanent status bar, a clock, etc. and I really don't want to change subject about which ncurses software I use and how to use that to generate text instead a generic solution ... I open this question be cause isn't only one software, there are few, screen recorder from GNU screen is only an example)



if I use less tool to see file it complain about being binary and then show a lot of garbage



if I use cat, I can see the text, but all pages at once, no way to slow it down or interact with it at all (if I add | less ... it will behave like not using cat at all)



same thing with grep, it will only show all lines at once, if it finds the string



so, any ideas ?









share|improve this question












share|improve this question




share|improve this question








edited May 29 at 12:10









Jeff Schaller

31k846105




31k846105









asked May 29 at 11:37









THESorcerer

13114




13114











  • One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
    – ivanivan
    May 29 at 11:45
















  • One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
    – ivanivan
    May 29 at 11:45















One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
– ivanivan
May 29 at 11:45




One of the online OCR services that will let you upload an image that they then "scan" and convert to text?
– ivanivan
May 29 at 11:45










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










You can usually view such files (for some value of “view”) with less -fr: -f forces less to open the file even if it thinks it’s a binary, and -r tells it to pass control characters to the display as-is. Another approach is to display them in the terminal, slowed down so that you can keep track of what’s happening (this is more useful for viewing ANSI animations, but it might help in your case); you can use slowcat for this.



You might get more useful results by using ansi2txt or ansi2html from the colorized-logs tools.






share|improve this answer





















  • ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
    – THESorcerer
    May 29 at 12:01










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446674%2fconvert-ncurses-binary-dump-into-text%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










You can usually view such files (for some value of “view”) with less -fr: -f forces less to open the file even if it thinks it’s a binary, and -r tells it to pass control characters to the display as-is. Another approach is to display them in the terminal, slowed down so that you can keep track of what’s happening (this is more useful for viewing ANSI animations, but it might help in your case); you can use slowcat for this.



You might get more useful results by using ansi2txt or ansi2html from the colorized-logs tools.






share|improve this answer





















  • ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
    – THESorcerer
    May 29 at 12:01














up vote
2
down vote



accepted










You can usually view such files (for some value of “view”) with less -fr: -f forces less to open the file even if it thinks it’s a binary, and -r tells it to pass control characters to the display as-is. Another approach is to display them in the terminal, slowed down so that you can keep track of what’s happening (this is more useful for viewing ANSI animations, but it might help in your case); you can use slowcat for this.



You might get more useful results by using ansi2txt or ansi2html from the colorized-logs tools.






share|improve this answer





















  • ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
    – THESorcerer
    May 29 at 12:01












up vote
2
down vote



accepted







up vote
2
down vote



accepted






You can usually view such files (for some value of “view”) with less -fr: -f forces less to open the file even if it thinks it’s a binary, and -r tells it to pass control characters to the display as-is. Another approach is to display them in the terminal, slowed down so that you can keep track of what’s happening (this is more useful for viewing ANSI animations, but it might help in your case); you can use slowcat for this.



You might get more useful results by using ansi2txt or ansi2html from the colorized-logs tools.






share|improve this answer













You can usually view such files (for some value of “view”) with less -fr: -f forces less to open the file even if it thinks it’s a binary, and -r tells it to pass control characters to the display as-is. Another approach is to display them in the terminal, slowed down so that you can keep track of what’s happening (this is more useful for viewing ANSI animations, but it might help in your case); you can use slowcat for this.



You might get more useful results by using ansi2txt or ansi2html from the colorized-logs tools.







share|improve this answer













share|improve this answer



share|improve this answer











answered May 29 at 11:52









Stephen Kitt

140k22302363




140k22302363











  • ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
    – THESorcerer
    May 29 at 12:01
















  • ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
    – THESorcerer
    May 29 at 12:01















ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
– THESorcerer
May 29 at 12:01




ansi2txt seems to be the answer, now file is text, even if, seems like I have a lot of work to do in cutting lines (one very long line) but at least now grep, cut, tr, sed, awk, etc. is working, Thank YOU :)
– THESorcerer
May 29 at 12:01












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446674%2fconvert-ncurses-binary-dump-into-text%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay