package term

Import Path
	github.com/charmbracelet/x/term (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 3 packages

Involved Source Files Package term provides a platform-independent interfaces for interacting with Terminal and TTY devices. term_unix.go term_unix_other.go terminal.go util.go
Package-Level Type Names (total 4, in which 2 are exported)
/* sort exporteds by: | */
File represents a file that has a file descriptor and can be read from, written to, and closed. ( File) Close() error ( File) Fd() uintptr ( File) Read(p []byte) (n int, err error) ( File) Write([]byte) (int, error) github.com/charmbracelet/ultraviolet.File (interface) github.com/muesli/cancelreader.File (interface) *os.File File : internal/bisect.Writer File : io.Closer File : io.ReadCloser File : io.Reader File : io.ReadWriteCloser File : io.ReadWriter File : io.WriteCloser File : io.Writer func github.com/charmbracelet/ultraviolet.NewSizeNotifier(f File) *uv.SizeNotifier func charm.land/lipgloss/v2.BackgroundColor(in File, out File) (bg color.Color, err error) func charm.land/lipgloss/v2.BackgroundColor(in File, out File) (bg color.Color, err error) func charm.land/lipgloss/v2.HasDarkBackground(in File, out File) bool func charm.land/lipgloss/v2.HasDarkBackground(in File, out File) bool
State contains platform-specific state of a terminal. state.Termios unix.Termios state.Termios.Cc [19]uint8 state.Termios.Cflag uint32 state.Termios.Iflag uint32 state.Termios.Ispeed uint32 state.Termios.Lflag uint32 state.Termios.Line uint8 state.Termios.Oflag uint32 state.Termios.Ospeed uint32 func GetState(fd uintptr) (*State, error) func MakeRaw(fd uintptr) (*State, error) func github.com/charmbracelet/ultraviolet.Console.MakeRaw() (state *State, err error) func Restore(fd uintptr, oldState *State) error func SetState(fd uintptr, state *State) error
Package-Level Functions (total 15, in which 7 are exported)
GetSize returns the visible dimensions of the given terminal. These dimensions don't include any scrollback buffer height.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
IsTerminal returns whether the given file descriptor is a terminal.
MakeRaw puts the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
ReadPassword reads a line of input from a terminal without local echo. This is commonly used for inputting passwords and other sensitive data. The slice returned does not include the \n.
Restore restores the terminal connected to the given file descriptor to a previous state.
SetState sets the given state of the terminal.
Package-Level Constants (total 2, neither is exported)