Replies: 4 comments 2 replies
-
|
I cannot reproduce this (Apple M2, macOS 26.2): How did you install and how do you open Ghostty? |
Beta Was this translation helpful? Give feedback.
-
|
I tested your exact reproductions ( Moving this to Q&A since this appears to somehow be a system issue. If we're wrong we can move it back. |
Beta Was this translation helpful? Give feedback.
-
|
I don't really know what causes this behavior, but here's one of consequence |
Beta Was this translation helpful? Give feedback.
-
|
Hi again. Sorry for the noise, I have found the reason. It was my own pre-cmd hooks that used to tee my commands. After deleting this, everything went well. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
Issue Description
In Ghostty, stdout (fd1) and stderr (fd2) are pipes instead of direct PTY connections. This causes isatty() to return False for these file descriptors, which breaks color output detection in virtually all CLI tools that check for terminal capability.
This affects:
The issue persists regardless of:
enabledorshell-integration = none)xterm-ghosttyorxterm-256color)zsh -fandbash --noprofile --norc)Expected Behavior
File descriptors 0, 1, and 2 should all be TTY devices:
$ python3 -c "import os; print('fd0:', os.isatty(0), 'fd1:', os.isatty(1), 'fd2:', os.isatty(2))" fd0: True fd1: True fd2: TrueThis is the behavior in Terminal.app and Warp on the same system.
Actual Behavior
stdout and stderr are pipes instead of TTY:
$ python3 -c "import os; print('fd0:', os.isatty(0), 'fd1:', os.isatty(1), 'fd2:', os.isatty(2))" fd0: True fd1: False fd2: FalseReproduction Steps
ls -la /dev/fd/"p-w--w----" (pipe) instead of "crw--w----" (tty)python3 -c "import os; print('fd0:', os.isatty(0), 'fd1:', os.isatty(1), 'fd2:', os.isatty(2))"Ghostty Logs
Ghostty Version
OS Version Information
macOS 26.2 (Build 25C56), Darwin 25.2.0, arm64 (Apple M1 Pro)
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
Shell: zsh 5.9 (also tested with /bin/bash)
Issue reproduces with:
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions