Are Sixel graphics supported on Windows? #416
-
Hi, I'm using Windows 10 and Contour 0.2.0.173. Are sixel graphics supported on this platform? To test, I'm using ImageMagick with a small png image: > .\magick.exe myFile.png sixel:- This produces a stream of output like so (this is just an excerpt): Here's the relevant portion of my contour.yml (it's not modified from the default): images:
# Enable or disable sixel scrolling (SM/RM ?80 default)
sixel_scrolling: true
# Configures the maximum number of color registers available when rendering Sixel graphics.
sixel_register_count: 4096
# If enabled, the ANSI text cursor is placed at the position of the sixel graphics cursor after
# image rendering, otherwise (if disabled) the cursor is placed underneath the image.
sixel_cursor_conformance: true
# maximum width in pixels of an image to be accepted
max_width: 1280
# maximum height in pixels of an image to be accepted
max_height: 720 Contour is really impressive, by the way, thanks for building and working on it. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
What version of ImageMagick? |
Beta Was this translation helpful? Give feedback.
-
God damn it i would love to get sixel support available on windows. But we need ConPTY to either support that first too, or have DCS passthrough or full passthrough mode. (edit: this ask Chinese from ConPTY that's must provide this) There may be a workaround maybe that i am thinking of. What shell are you using ? Or are you developing your own command line apps on windows that will need this? Also, sorry for Windows platform for lagging slightly behind. @skyline75489 did great work here (thanks). Are you also using any non-windows? (Just curious) But the long term plan is to have one terminal that works equally nice on all platforms. (Sent from my smartphone. I apologize for possible auto-correction mistakes ahead of time) |
Beta Was this translation helpful? Give feedback.
-
BTW chafa now will use sixels in Contour by default. |
Beta Was this translation helpful? Give feedback.
-
If you want Sixels on Windows currently, you'd need to use Mintty. I DO NOT RECOMMEND copying their behavior to bypass conhost and ConPTY. They are a fork from Putty which does offer a ton of VT support on Windows but there is far too much hackery going on for a long time. Best bet is to wait on microsoft/terminal#11264. See microsoft/terminal#1173 (and request priority bump). If enough terminal authors are requesting the feature (and asking on progress) , they'll feel more motivated to finish getting that PR ready to go. Probably also a good idea to review that PR to ensure that it would do everything you need it to without any bugs once it's no longer in draft. |
Beta Was this translation helpful? Give feedback.
-
Also see https://github.com/csdvrx/sixel-tmux, which provides Sixel support for tmux but more importantly, provides a derasterize fallback option for a terminal that doesn't support Sixels by default such as Windows Terminal. Chafa may be the better alternative but it's yet another approach to making Sixel available to users on Windows (as well as many other terminals on Mac or Linux that don't support Sixel). |
Beta Was this translation helpful? Give feedback.
God damn it i would love to get sixel support available on windows. But we need ConPTY to either support that first too, or have DCS passthrough or full passthrough mode. (edit: this ask Chinese from ConPTY that's must provide this)
There may be a workaround maybe that i am thinking of. What shell are you using ? Or are you developing your own command line apps on windows that will need this?
Also, sorry for Windows platform for lagging slightly behind. @skyline75489 did great work here (thanks).
Are you also using any non-windows? (Just curious)
But the long term plan is to have one terminal that works equally nice on all platforms.
(Sent from my smartphone. I apologize for possible auto…