# Functions
BuffersHeight computes the combined height of a number of buffers.
CellsWidth returns the total width of a Cell slice.
CompareCells returns whether two Cell slices are equal, and when they are not, the first index at which they differ.
IsReadErrorRecoverable returns whether an error returned by Reader is recoverable.
K constructs a new KeyEvent.
NewBuffer builds a new buffer, with one empty line.
NewBufferBuilder makes a new BufferBuilder, initially with one empty line.
NewReader creates a new Reader on the given terminal file.
NewWriter returns a Writer that writes VT100 sequences to the given io.Writer.
SetupForEval sets up the terminal for evaluating Elvish code, whether or not we are in an interactive session.
SetupForTUI sets up the terminal so that it is suitable for the TUI application (as implemented by pkg/cli).
SetupForTUIOnce sets up the terminal once for a whole interactive session.
# Variables
DotHere is a special argument to MarkLines to mark the position of the dot.
ErrStopped is returned by Reader when Close is called during a ReadEvent or ReadRawEvent method.
# Structs
Buffer reflects a continuous range of lines on the terminal.
BufferBuilder supports building of Buffer.
Cell is an indivisible unit on the screen.
FatalErrorEvent represents an error that affects the Reader's ability to continue reading events.
MouseEvent represents a mouse event (either pressing or releasing).
NonfatalErrorEvent represents an error that can be gradually recovered.
Pos is a line/column position.
# Type aliases
CursorPosition represents a report of the current cursor position from the terminal driver, usually as a response from a cursor position request.
KeyEvent represents a key press.
Line stores a single line.
Lines stores multiple lines.
PasteSetting indicates the start or finish of pasted text.