diff --git a/docs/changelog.rst b/docs/changelog.rst index d3ab35362..11e450264 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -93,6 +93,9 @@ To update |kitty|, :doc:`follow the instructions `. - Remote control: Allow matching tabs by index number in currently active OS Window (:iss:`3708`) +- ssh kitten: Fix non-standard properties in terminfo such as the ones used for + true color not being copied (:iss:`312`) + 0.20.3 [2021-05-06] ---------------------- diff --git a/docs/faq.rst b/docs/faq.rst index 65261c6f8..c67f694f9 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -64,7 +64,7 @@ server, use the following one-liner instead (it is slower as it needs to ssh into the server twice, but will work with most servers):: - infocmp xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin + infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin If you are behind a proxy (like Balabit) that prevents this, you must redirect the 1st command to a file, copy that to the server and run ``tic`` manually. If you diff --git a/kittens/ssh/main.py b/kittens/ssh/main.py index 1aca77233..2dd4ecd38 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -211,7 +211,7 @@ def main(args: List[str]) -> NoReturn: else: hostname, remote_args = server_args[0], server_args[1:] cmd += ['-t', hostname] - terminfo = subprocess.check_output(['infocmp']).decode('utf-8') + terminfo = subprocess.check_output(['infocmp', '-a']).decode('utf-8') f = get_posix_cmd if use_posix else get_python_cmd cmd += f(terminfo, remote_args) os.execvp('ssh', cmd)