terminal

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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