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

Not detecting kitty image support on Mac, falls back to ANSI #113

Open
sschuldenzucker opened this issue May 22, 2024 · 2 comments
Open

Comments

@sschuldenzucker
Copy link

On my Mac, euporie isn't detecting that I'm running it from within kitty and it doesn't display images (images are displayed as ANSI art). This affects all tools (notebook, preview).

Tools and versions:

steffen@srs ~ % echo $TERM
xterm-kitty
steffen@srs ~ % kitty --version
kitty 0.34.1 created by Kovid Goyal
steffen@srs ~ % euporie --version
euporie 2.8.2

Image support works just fine in other tools, e.g., kitten icat.

@joouha
Copy link
Owner

joouha commented May 23, 2024

What happens if you run the following in kitty?

printf "\x1b_Gi=4294967295,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\\"

This is the terminal escape sequence euporie uses to detect kitty graphics support.
The terminal should respond with \x1b_Gi=4294967295;OK\x1b\:

image

@sschuldenzucker
Copy link
Author

Eh, gmgm, missed this, sorry. In fish, I get the following, in red.

18:00:33 steffen@srs ~> printf "\x1b_Gi=4294967295,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\\"
18:00:38 steffen@srs ~> _Gi=4294967295;OK\

In zsh, I get the following, not in red:

steffen@srs ~ % printf "\x1b_Gi=4294967295,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\\"
steffen@srs ~ % "\x1b_Gi=4294967295,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\\"Gi=4294967295;OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants