mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.11k stars 104 forks source link

Sixel Graphics doesn't work if font size > 10pt #90

Closed mobluse closed 6 years ago

mobluse commented 6 years ago

I use wsltty 1.8.4 in Microsoft Windows [Version 10.0.17083.1000].

Sixel Graphics doesn't work if font size is larger than 10pt for e.g. DejaVu Sans Mono and other fonts I tried. When font size is larger than 10 pt nothing is shown. I don't know much about sixel graphics, but I don't think it should stop working just because the fontsize is 11pt or larger because that is not mentioned anywhere I can see. Cygwin mintty 2.8.2 has the same problem as wsltty. One reason for using WSL Terminal is that sixel graphics is working.

I have this in a file called sixel.sh, do chmod +x sixel.sh and run with ./sixel.sh.

#!/bin/bash
printf "\ePq#1NNNN#2NNNN#3NNNN\$oooo"\
"#1oooo#2oooo-#3BBBB#1BBBB#2BBBB\${{{{"\
"#3{{{{#1{{{{????\e\\"
printf "\n"
printf "\ePq"\
"#0;2;0;0;0#1;2;100;100;0#2;2;0;100;0"\
"#1~~@@vv@@~~@@~~$"\
"#2??}}GG}}??}}??-"\
"#1!14@"\
"\e\\"
mintty commented 6 years ago

In general, sixel display works at larger sizes too. However, I noticed before that a few sixel images fail. Maybe there is a particular data anomaly in this one that can spoil display. I could display it at 12pt once, but it also even crashed the current version another time; it doesn't seem to do that in the original sixel release, I'll analyze this. @saitoha, any other idea, especially about delicate sixel data problems, please?

mintty commented 6 years ago

Taking the issue to mintty/mintty#740 as it is not WSL-specific. Further comments go there please.

mintty commented 6 years ago

Released 1.8.5 with mintty 2.8.5.