From 7cb43a953da6492f97960b2bfc52765a5d5bb20b Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Thu, 14 May 2026 13:36:59 -0400 Subject: [PATCH] fix: export COLUMNS LINES before exec sbcl bash sets COLUMNS and LINES but doesn't export them to subprocesses. Without export, SBCL's posix-getenv returns nil and the terminal size fallback fails. Add explicit export before the exec sbcl line. --- passepartout | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passepartout b/passepartout index d049eaf..d28e112 100755 --- a/passepartout +++ b/passepartout @@ -406,6 +406,9 @@ case "$COMMAND" in (sleep 3) (finish-output) (uiop:quit 1)))) (passepartout.channel-tui:tui-main)) LISPEOF + # Export terminal dimensions — bash sets COLUMNS/LINES but + # doesn't export them to subprocesses by default. + export COLUMNS LINES exec sbcl --noinform --load /tmp/tui-load.lisp ;; gateway)