-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit size specification needed when redirecting output #92
Comments
NOTE: I tried to simply redirect the output to a file which resulted in a 0 bytes file. |
Redirection should work... Perhaps something trivial is missing such as flushing the output stream...? On which platform did you encounter this problem? |
p.p.s: Did you try with an explicit size? I think a problem might be failure to detect the terminal size? |
Redirecting to file works fine here. Be sure to specify a -w width and a -h larger than required. e.g. tiv -w 80 -h 400 mypic.png > mypic.ans && cat mypic.ans |
Sorry for the late reply. Perhaps it is useful having this in the readme? |
I think we could check whether the value is reasonable if there is no explicit width, and use a default value if not |
I would like to have the option to write the ASCII with escape codes and all to a file in such a way that at a later moment I can simply do
cat file.ans
and see the image.The text was updated successfully, but these errors were encountered: