From 6e8da20ee22e07d271a47a53e43f35ba41e55281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 27 Aug 2021 13:16:49 +0200 Subject: [PATCH] doc: foot{,,client}: document TERMINFO Closes #691 --- doc/foot.1.scd | 23 +++++++++++++++++++++++ doc/footclient.1.scd | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/doc/foot.1.scd b/doc/foot.1.scd index bbe784bc..cbebd087 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -402,6 +402,29 @@ The following environment variables are set in the child process: set according to either the *--term* command-line option or the *term* config option in *foot.ini*(5). +*TERMINFO* + Path to foot's terminfo definitions. These are typically installed + in a non-standard location (though distributions may override + this), to allow them to co-exist with the foot terminfo + definitions in ncurses. Note that applications will search the + default location(s) if *TERM* does not exist in *TERMINFO*. + + Note that applications like sudo and ssh will remove this + environment variable. + + For sudo, you can create a file under _/etc/sudoers.d_ (name does + not matter) with the following content: + + *Defaults env_keep += "TERMINFO"* + + For ssh, you can edit _/etc/ssh/sshd_config_ (on the *server*), + and add: + + *SetEnv TERMINFO=*__ + + Where path is the location of the terminfo definitions on the + *server*, typically /usr/share/foot/terminfo. + *COLORTERM* This variable is set to *truecolor*, to indicate to client applications that 24-bit RGB colors are supported. diff --git a/doc/footclient.1.scd b/doc/footclient.1.scd index b252d5e1..155683da 100644 --- a/doc/footclient.1.scd +++ b/doc/footclient.1.scd @@ -146,6 +146,29 @@ The following environment variables are set in the child process: set according to either the *--term* command-line option or the *term* config option in *foot.ini*(5). +*TERMINFO* + Path to foot's terminfo definitions. These are typically installed + in a non-standard location (though distributions may override + this), to allow them to co-exist with the foot terminfo + definitions in ncurses. Note that applications will search the + default location(s) if *TERM* does not exist in *TERMINFO*. + + Note that applications like sudo and ssh will remove this + environment variable. + + For sudo, you can create a file under _/etc/sudoers.d_ (name does + not matter) with the following content: + + *Defaults env_keep += "TERMINFO"* + + For ssh, you can edit _/etc/ssh/sshd_config_ (on the *server*), + and add: + + *SetEnv TERMINFO=*__ + + Where path is the location of the terminfo definitions on the + *server*, typically /usr/share/foot/terminfo. + *COLORTERM* This variable is set to *truecolor*, to indicate to client applications that 24-bit RGB colors are supported.