fix(tuios): force xterm-kitty inside panes

This commit is contained in:
Ryan Yin committed 2026-11-01 09:43:04 +08:00
1 parent 9152e82916
commit 7a00fead7d
1 file changed
+9
+9
View File
@@ -22,6 +22,15 @@ in
# `work` for the ~/work tree, `personal` for everything else (a host with no
# ~/work gets `personal` everywhere).
programs.nushell.extraConfig = ''
# TUIOS keeps TERM=xterm-256color for terminfo compatibility, even though
# this host's only terminal emulators (kitty and Ghostty) both speak the
# Kitty graphics protocol and TUIOS forwards it. Force the guest TERM to
# xterm-kitty so graphics-aware apps do not disable themselves; its
# terminfo entry comes with kitty.
if ("TUIOS_ENV" in $env) {
$env.TERM = "xterm-kitty"
}
if $nu.is-interactive and (not ("TUIOS_SESSION" in $env)) {
# Exit 3 means the daemon is stopped; stdout still lists saved sessions.
let listing = (^tuios ls --json | complete)