terminal

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSize added in v1.0.46

func GetSize() (width int, height int)

GetSize Tries to get terminal size from stdout file descriptor. on err returns -1, -1

func IsTerminal

func IsTerminal() bool

Types

type Mode added in v1.0.46

type Mode string
const (
	ModeAuto     Mode = "auto"
	ModeDisabled Mode = "disabled"
	ModeEnabled  Mode = "enabled"
)

func GetMode added in v1.0.46

func GetMode() Mode

func (Mode) IsAuto added in v1.0.46

func (m Mode) IsAuto(other Mode) bool

func (Mode) IsDisabled added in v1.0.46

func (m Mode) IsDisabled(other Mode) bool

func (Mode) IsEnabled added in v1.0.46

func (m Mode) IsEnabled(other Mode) bool

Jump to

Keyboard shortcuts

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