Skip to content
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

Terminal image support (Kitty graphics protocol, Sixel, etc) #3005

Open
rsmirnov90 opened this issue Nov 21, 2023 · 7 comments
Open

Terminal image support (Kitty graphics protocol, Sixel, etc) #3005

rsmirnov90 opened this issue Nov 21, 2023 · 7 comments

Comments

@rsmirnov90
Copy link

Has anyone considered adding support for rendering an image in the text terminal?

I can think of many scenarios where this could come in useful, and would love to work on something like this myself though I likely wouldn't even know where to start.

@tznind
Copy link
Collaborator

tznind commented Nov 21, 2023

There has been consideration but never more than that.

See this discussion for example (which contains link to example code):
#1265

If you are motivated to give it a go then the best place to start would probably be getting a standalone console app to produce a sixel image. Then we can help integrate it into the driver layer or a View.

@Nutzzz
Copy link
Contributor

Nutzzz commented Aug 9, 2024

FYI, VT support has recently been much improved in Windows Terminal/ConPTY, and Sixel is now working in Windows Terminal (Canary only for now)! See microsoft/terminal#17510 and microsoft/terminal#17581

I grabbed https://github.com/gnachman/libsixel-1/blob/master/images/snake.six and got this:

image

@BDisp
Copy link
Collaborator

BDisp commented Aug 9, 2024

It's necessary install Sixel?

@Nutzzz
Copy link
Contributor

Nutzzz commented Aug 10, 2024

It's necessary install Sixel?

For the above test, nothing to install was necessary (other than WT Canary). It worked in both PowerShell and cmd.

@BDisp
Copy link
Collaborator

BDisp commented Aug 10, 2024

My WT doesn't show anything about Canary in the version.

@tznind
Copy link
Collaborator

tznind commented Aug 10, 2024

Here is a link to the blog post, which contains a link to GitHub repo including installers

https://devblogs.microsoft.com/commandline/introducing-windows-terminal-canary/

Presume canary is just the 'early adopter' channel. So this feature will come later to Windows Terminal core releases too.

@Nutzzz
Copy link
Contributor

Nutzzz commented Aug 10, 2024

Presume canary is just the 'early adopter' channel. So this feature will come later to Windows Terminal core releases too.

Correct (the canary refers to the "coalmine" adage). You can download the latest Canary installer here: https://aka.ms/terminal-canary-installer or just wait until the end of the month (estimated) to update your WT from the Microsoft Store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

5 participants