package
0.0.0-20161130133337-e551c64f56c0
Repository: https://github.com/kless/term.git
Documentation: pkg.go.dev

# Functions

NewDefaultLine returns a line type using the prompt by default, and setting the terminal to raw mode.
NewHistory creates a new history using the maximum length by default.
NewHistoryOfSize creates a new history whose buffer has the specified size, which must be greater than zero.
NewLine returns a line using both prompts ps1 and ps2, and setting the given terminal to raw mode, if were necessary.

# Constants

Backward.
Down.
Forward.
Up.
Erase line.
To next line.
To previous line.
Bold on.
All attributes off.
Default values for prompts.
Default values for prompts.

# Variables

Buffer size.
Initial length.
To detect if has been pressed CTRL-C.
To detect if has been pressed CTRL-D.
Carriage return -- \r.
CR+LF is used for a new line in raw mode -- \r\n.
Characters.
Characters.
ANSI terminal escape controls.
ANSI terminal escape controls.
ANSI terminal escape controls.
Cursor control.
ANSI terminal escape controls.
Delete character, from current position.
Erase line; carriage return.
Erase line; cursor up.
Erase the screen; move upper.
Erase to right.
No description provided by the author
No description provided by the author
No description provided by the author
Capacity.
History file permission.
ANSI terminal escape controls.
ANSI terminal escape controls.

# Structs

A Line represents a line in the term.