From fd78fa98b4765771b65140bc6edfbd472b4f666b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 27 Aug 2021 20:25:26 +0200 Subject: [PATCH] =?UTF-8?q?doc:=20how=20to=20pass=20TERMINFO=20through=20?= =?UTF-8?q?=E2=80=98doas=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #692 --- doc/foot.1.scd | 17 ++++++++++++----- doc/footclient.1.scd | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/doc/foot.1.scd b/doc/foot.1.scd index cbebd087..26fee4a1 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -409,15 +409,22 @@ The following environment variables are set in the child process: 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. + Note that applications like *sudo*, *doas* and *ssh* may remove + this environment variable. - For sudo, you can create a file under _/etc/sudoers.d_ (name does - not matter) with the following content: + 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*), + For *doas*, edit _/etc/doas.conf_ and add: + + *permit setenv { TERMINFO } :wheel* + + Or, if you are not in the *wheel* group, replace *:wheel* with + your username. + + For *ssh*, you can edit _/etc/ssh/sshd_config_ (on the *server*), and add: *SetEnv TERMINFO=*__ diff --git a/doc/footclient.1.scd b/doc/footclient.1.scd index 155683da..6d5839f0 100644 --- a/doc/footclient.1.scd +++ b/doc/footclient.1.scd @@ -153,15 +153,22 @@ The following environment variables are set in the child process: 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. + Note that applications like *sudo*, *doas* and *ssh* may remove + this environment variable. - For sudo, you can create a file under _/etc/sudoers.d_ (name does - not matter) with the following content: + 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*), + For *doas*, edit _/etc/doas.conf_ and add: + + *permit setenv { TERMINFO } :wheel* + + Or, if you are not in the *wheel* group, replace *:wheel* with + your username. + + For *ssh*, you can edit _/etc/ssh/sshd_config_ (on the *server*), and add: *SetEnv TERMINFO=*__