Unset NO_COLOR before Ghostty init

This commit is contained in:
Lawrence Chen 2026-01-25 15:51:23 -08:00
parent d41f252d0b
commit d6b0a544f9

View file

@ -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 {