diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/macos.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/macos.md b/docs/macos.md index 98cd5312..a398879b 100644 --- a/docs/macos.md +++ b/docs/macos.md @@ -463,15 +463,18 @@ See [the control filesystem](typ/reference.typ) for paths and transports. Two more things this host cannot inherit from its launcher, because a `.app` has none: -- **The terminal's identity.** `host_io.ChildEnv` writes `TERM`, `COLORTERM` - and `TERM_PROGRAM` over whatever the environment carried and the child is +- **The terminal's identity.** `host_io.ChildEnv` writes `TERM`, `COLORTERM`, + `TERM_PROGRAM` and `TERM_PROGRAM_VERSION` over whatever the environment carried and the child is `execve`'d with that array — built before the fork, because a `setenv` between fork and exec can deadlock on the heap a pty reader thread was holding. Every pane is emulated by the bundled VT, so the value describes - pardes and never the terminal pardes was started from; `-Dplatform=gui` and + that VT and never the terminal pardes was started from (`TERM_PROGRAM` and + `TERM_PROGRAM_VERSION` name Ghostty, whose VT it is, so programs that pick + features by name find them); `-Dplatform=gui` and the tui shell take the same path, where the difference is only that their launcher usually happened to set something. The names come from - `config.child_term` / `child_colorterm` / `child_term_program`, and `TERM` + `config.child_term` / `child_colorterm` / `child_term_program` / + `child_term_program_version`, and `TERM` is deliberately `xterm-256color` rather than a name with no installed terminfo entry — `clear`, colour and cursor addressing all resolve through that lookup. |
