Documentation
¶
Overview ¶
Package termwidth resolves terminal width with support for the COLUMNS environment variable.
Resolution order:
- COLUMNS environment variable (hard override, per Unix convention)
- Terminal ioctl detection via the given file descriptor
- Fallback default (80)
Index ¶
Constants ¶
View Source
const DefaultWidth = 80
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.