aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-27 18:25:26 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-27 18:25:26 +0000
commitfd78fa98b4765771b65140bc6edfbd472b4f666b (patch)
tree421c9cac7f3340b04b6311d7de33b6d17aa88aa0
parentchangelog: add new ‘unreleased’ section (diff)
doc: how to pass TERMINFO through ‘doas’
See #692
-rw-r--r--doc/foot.1.scd17
-rw-r--r--doc/footclient.1.scd17
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=*_<path>_
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=*_<path>_