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

icat not working over SSH #2568

Closed
jubame opened this issue Apr 18, 2020 · 9 comments
Closed

icat not working over SSH #2568

jubame opened this issue Apr 18, 2020 · 9 comments

Comments

@jubame
Copy link

jubame commented Apr 18, 2020

icat does not work over SSH for me. This is the output:

[test@localhost ~]$ kitty +kitten icat image.png 
^[_Gi=1;OK^[\This terminal emulator does not support the graphics protocol, use a terminal emulator such as kitty that does support it
[test@localhost ~]$ kitty +kitten icat image.png 
                                                                  
[test@localhost ~]$ kitty +kitten icat image.png 
This terminal emulator does not support the graphics protocol, use a terminal emulator such as kitty that does support it

As can be seen above, sometimes I get an error message, other times an empty line.
It works fine locally.

kitty version: 0.17.2 on both my PC and server
OS: Fedora 31 on both my PC and server
I have no kitty config files

@kovidgoyal
Copy link
Owner

I'm going to need some way to reproduce your problem "does not work over
ssh" is insufficient, since it definitely does work over ssh. Make sure
you are not running tmux or screen or something of the sort. Make sure
your TERM is set correctly to xtem-kitty and you have either used the ssh
kitten or otherwise made the kitty terminfo files available on the
server.

@jubame
Copy link
Author

jubame commented Apr 18, 2020

I have previously done kitty +kitten ssh test@192.168.1.31 and terminfo file is present:

[test@localhost ~]$ ls -l ~/.terminfo/x/xterm-kitty
-rw-rw-r--. 1 test test 2197 Apr 18 19:11 /home/test/.terminfo/x/xterm-kitty

TERM variable seems fine:

[test@localhost ~]$ echo $TERM
xterm-kitty

I am not running under tmux or screen.

@kovidgoyal
Copy link
Owner

OK, I'll take a look when I have a moment.

@jubame
Copy link
Author

jubame commented Apr 19, 2020

Thank you. I have built from source and now it works.

@hongquan
Copy link

Could you please show me example on how to use icat with SSH? Does "kitty" need to be installed on remote machine?

@kovidgoyal
Copy link
Owner

Yes, it does. Since icat is a program that is part of kitty. Otherwise
write your own script to do it, using the graphics protocol:
https://sw.kovidgoyal.net/kitty/graphics-protocol.html

@kovasap
Copy link

kovasap commented Mar 10, 2021

I just ran into this same problem with kitty 0.19.3.

> icat file.png
This terminal emulator does not support the graphics protocol, use a terminal emulator such as kitty that does support it
> echo $TERM
xterm-kitty
> ls -l ~/.terminfo/x/xterm-kitty
-rw-r--r-- 1 kovas primarygroup 2197 Mar 10 10:27 /home/kovas/.terminfo/x/xterm-kitty

I'm not running under tmux or screen. Any places I could look for error messages?

@kovidgoyal
Copy link
Owner

Then what are you running, because you have to be running something that
is filtering out the graphics protocol escape codes between the client
and the terminal emulator.

@rickalex21
Copy link

rickalex21 commented Jun 10, 2024

I'm getting the same error ssh from windows to Linux, not sure why it does not work via ssh.
I also tried with default settings for fish shell.

-❯ kitty +kitten icat icons.png
Error: This terminal does not support the graphics protocol use a terminal such as kitty, WezTerm or Konsole that does. If you are running inside a terminal multiplexer such as tmux or screen that might be interfering as well.

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

5 participants