Unset NO_COLOR before Ghostty init
This commit is contained in:
parent
d41f252d0b
commit
d6b0a544f9
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue