Drop the requirement for having python on the server when using the ssh kitten

This commit is contained in:
Kovid Goyal
2018-05-22 23:15:24 +05:30
parent d20e801793
commit 30b38e9fa0
2 changed files with 14 additions and 56 deletions

View File

@@ -560,15 +560,15 @@ for why kitty does not support background color erase.
=== I get errors about the terminal being unknown or opening the terminal failing when SSHing into a different computer?
This happens because the kitty terminfo files are not available on the server.
If you have python installed on the server, you can ssh in using the following
command which will automatically copy the terminfo files over.
You can ssh in using the following command which will automatically copy the
terminfo files to the server:
....
kitty +kitten ssh server_name
kitty +kitten ssh myserver
....
Alternatively, you can use the following one-liner which does not require python
on the server, but is slower, as it has to ssh into the server twice:
If for some reason that does not work, you can use the following one-liner
instead (it is slower as it needs to ssh into the server twice).
....
infocmp xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin
@@ -578,16 +578,6 @@ Really, the correct solution for this is to convince the OpenSSH maintainers to
have ssh do this automatically when connecting to a server, so that all
terminals work transparently.
In the meantime, you can automate it by using a simple script called, for example,
`~/bin/myssh`
....
#!/bin/sh
infocmp xterm-kitty | ssh $1 tic -x -o \~/.terminfo /dev/stdin && ssh $1
....
Then you can use `myssh server` to log in to `server` with the terminfo file
being automatically available.
=== How do I change the colors in a running kitty instance?