Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + type DisplayType string + const DisplayTypeMacOS + const DisplayTypeNone + const DisplayTypeWayland + const DisplayTypeWindows + const DisplayTypeX11 + type Env struct + Cols int + DisplayType DisplayType + HasColor bool + HasDisplay bool + IsMosh bool + IsSSH bool + IsScreen bool + IsTerminal bool + IsTmux bool + OS string + Rows int + func Detect() Env + func (e Env) GetMode() Mode + func (e Env) IsMultiplexed() bool + func (e Env) IsRemote() bool + func (e Env) TerminalSize() (cols, rows int) + type Mode int + const ModeCLI + const ModeGUI + const ModeHeadless + const ModeTUI + func (m Mode) IsDaemon() bool + func (m Mode) IsInteractive() bool + func (m Mode) String() string + func (m Mode) SupportsColors() bool + func (m Mode) SupportsInteraction() bool + func (m Mode) SupportsRichOutput() bool