package term

Import Path
	github.com/reeflective/readline/internal/term (on go.dev)

Dependency Relation
	imports 6 packages, and imported by 7 packages


Package-Level Type Names (only one)
/* sort by: | */
State contains the state of a terminal. func GetState(fd int) (*State, error) func MakeRaw(fd int) (*State, error) func Restore(fd int, state *State) error
Package-Level Functions (total 18)
BeginBuffer starts buffering terminal writes. Calls nest: only the outermost BeginBuffer/EndBuffer pair allocates and flushes the buffer, so render entrypoints can be wrapped independently without coordinating.
DisableBracketedPaste disables bracketed paste mode.
EnableBracketedPaste enables bracketed paste mode.
EndBuffer flushes and tears down the buffer when leaving the outermost frame. It is safe to call unmatched (it no-ops at depth 0), so it can be deferred even if BeginBuffer is on an early-return path.
FlushBuffer pushes everything buffered so far to the terminal without ending the frame. It must be called before any operation that READS the terminal and depends on prior output being on screen — chiefly an ESC[6n cursor-position query (see GetCursorPos): otherwise the prompt would still sit in the buffer and the reported cursor position would be wrong.
GetLength returns the length of the terminal (Y length), or 80 if it cannot be established.
GetSize returns the dimensions of the given terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
GetWidth returns the width of the terminal or 80 if it cannot be established.
IsTerminal returns true if the given file descriptor is a terminal.
MakeRaw put 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.
MoveCursorBackwards moves the cursor backward i columns.
MoveCursorDown moves the cursor down i lines.
MoveCursorForwards moves the cursor forward i columns.
MoveCursorUp moves the cursor up i lines.
Printf formats and writes to the terminal, honouring the frame buffer.
Restore restores the terminal connected to the given file descriptor to a previous state.
WriteString writes s to the terminal: into the frame buffer when one is active, otherwise straight to the output. Empty strings are dropped so callers need not guard.
Package-Level Variables (total 4)
Some core keys needed by some stuff.
Some core keys needed by some stuff.
Some core keys needed by some stuff.
Some core keys needed by some stuff.
Package-Level Constants (total 14)
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.
Terminal control sequences.