From d6b0a544f972a5e4bf72e1e8f41bc1be24e41723 Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Sun, 25 Jan 2026 15:51:23 -0800 Subject: [PATCH] Unset NO_COLOR before Ghostty init --- Sources/GhosttyTerminalView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/GhosttyTerminalView.swift b/Sources/GhosttyTerminalView.swift index 486c52bb..1b7c2a73 100644 --- a/Sources/GhosttyTerminalView.swift +++ b/Sources/GhosttyTerminalView.swift @@ -86,6 +86,11 @@ class GhosttyApp { } private func initializeGhostty() { + // Ensure TUI apps can use colors even if NO_COLOR is set in the launcher env. + if getenv("NO_COLOR") != nil { + unsetenv("NO_COLOR") + } + // Initialize Ghostty library first let result = ghostty_init(0, nil) if result != GHOSTTY_SUCCESS {