No sixel output from Canvas.print() on xterm #6
|
Is there a way to force sixel output to output the sixel string? Have a couple of terminals tested, that have working sixel support (eg. xterm), but chafa.py is only giving me an empty string as output. |
Answered by
GuardKenzie
Jan 16, 2023
Replies: 1 comment 1 reply
|
Yes! xterm is one of the terminals not detected properly so instead of executing canvas.print()you can execute canvas.print(fallback=True)to supplement the auto-detected terminal sequences with fallback control sequences (in your case, sixel control sequences). You just have to be careful when doing this since you will just get a long string of random letters and symbols if you try this on a terminal that doesn't support sixels (e.g. kitty). editCheck out this section in the tutorial and the docs for |
1 reply
Answer selected by
jerch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes! xterm is one of the terminals not detected properly so instead of executing
you can execute
to supplement the auto-detected terminal sequences with fallback control sequences (in your case, sixel control sequences).
You just have to be careful when doing this since you will just get a long string of random letters and symbols if you try this on a terminal that doesn't support sixels (e.g. kitty).
edit
Check out this section in the tutorial and the docs for
Canvas.print()