Documentation
¶
Overview ¶
Package terminal provides terminal width detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Width ¶
func Width() int
Width returns the terminal width in columns. Detection order: stdout fd, stderr fd, /dev/tty, COLUMNS env, default 80. When running as a piped subprocess (e.g. Claude Code status line command), stdout/stderr are pipes, so /dev/tty is typically the first successful source.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.