diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-05-12 12:55:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-05-18 15:50:48 +0000 |
| commit | a2f765b72a6612758a034a5b0c24ec08625db1a3 (patch) | |
| tree | b6c58f68f43b2b246a3b47992da3e021ffe44974 /tests | |
| parent | customized gnome-like csd buttons (diff) | |
slave: unset TERM_PROGRAM{,_VERSION}
Foot’s policy is to not set environment variables that identifies
it (except the well-known and established `TERM` variable).
We encourage applications to use terminfo to determine capabilities,
or terminal queries, when available. Or, at least use terminal queries
to detect the terminal and its version.
Setting environment variables is a bad idea since they are inherited
by all applications started by the terminal (which is the whole
point). But, this includes other terminal emulators, making it very
possible a terminal emulator gets mis-detected just because it was
started from another terminal.
Since there are a couple of terminal emulators that _do_ set
TERM_PROGRAM and TERM_PROGRAM_VERSION, unset these environment
variables to avoid being misdetected.
Closes #1349
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
