aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-02 16:15:55 +0200
committeruser <user@clank>2026-09-02 16:15:55 +0200
commit07194e139fbb90cb946be4d1e50e4937dab1ce04 (patch)
tree14effe428d98536a2c3ee262fc6b72402e17f542 /docs
parentversion: never answer for somebody else's git; arch: 0.1.4-3 (diff)
downloadslosh-07194e139fbb90cb946be4d1e50e4937dab1ce04.tar.gz
slosh-07194e139fbb90cb946be4d1e50e4937dab1ce04.tar.xz
slosh-07194e139fbb90cb946be4d1e50e4937dab1ce04.zip
pty: fall back to xterm-256color where xterm-ghostty has no terminfo
TERM=xterm-ghostty was unconditional, but the entry ships with ghostty and a machine that has never seen ghostty has ncurses' database and nothing else. There, nano exits the moment it opens (C-a e flashing a pane) and a shell that cannot look up kbs guesses at backspace. The entry is now looked up the way curses would -- TERMINFO, ~/.terminfo, TERMINFO_DIRS, the system dirs, letter and Darwin-hashed layouts -- and when absent, panes get xterm-256color, which every ncurses database carries. Verified both ways with a mount namespace hiding the database.
Diffstat (limited to 'docs')
-rw-r--r--docs/slosh.17
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/slosh.1 b/docs/slosh.1
index 9543b59..9bb623e 100644
--- a/docs/slosh.1
+++ b/docs/slosh.1
@@ -349,6 +349,13 @@ layouts, themes and shader presets lives under
.SH ENVIRONMENT
Set in every pane:
.TP
+.B TERM
+.B xterm-ghostty
+when the machine's terminfo database has the entry (it ships with ghostty),
+.B xterm-256color
+when it does not: an entry curses cannot find makes editors exit on
+the spot and backspace guess.
+.TP
.B SLOSH
.B 1
: you are inside a pane.