convert ncurses binary dump into text
Clash 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 ?
grep cat less text-formatting ncurses
add a comment |Â
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 ?
grep cat less text-formatting ncurses
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
add a comment |Â
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 ?
grep cat less text-formatting ncurses
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 ?
grep cat less text-formatting ncurses
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
add a comment |Â
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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