tty

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 2 Imported by: 0

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

func Open() *os.File

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL