Documentation
¶
Overview ¶
Package tty provides access to the process's controlling terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens the controlling terminal of the current process for reading and writing. Returns nil when no controlling terminal is available (CI, detached session, no-TTY environments).
Used as a fallback when parent stdio is not a terminal (e.g. old-wrapper invocation where stdout is captured by a subshell). Note: Bun-compiled agents on macOS reject /dev/tty-opened fds for TTY stream construction; callers should prefer inheriting parent stdio directly when it is already a terminal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.