Documentation ¶
Index ¶
Constants ¶
View Source
const ( TTY = "/dev/tty" // Microsoft Windows is not supported HISTORY_MAX_DEFAULT = 100 HISTORY_ENTRY_LEN_MIN_DEFAULT = 5 REPORT_ERRORS_DEFAULT = false SEARCH_MODE_CHAR_DEFAULT = ':' CONTROL_A = 1 CONTROL_B = 2 CONTROL_D = 4 CONTROL_E = 5 CONTROL_K = 11 CONTROL_N = 14 ENTER_KEY = 13 ESCAPE_KEY = 27 UP_ARROW = 65 DOWN_ARROW = 66 RIGHT_ARROW = 67 LEFT_ARROW = 68 ARROW_KEY_INDICATOR = 91 DELETE_KEY = 127 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLE ¶
type CLE struct {
// contains filtered or unexported fields
}
func (*CLE) ClearHistory ¶
func (this *CLE) ClearHistory()
func (*CLE) SaveHistory ¶
func (this *CLE) SaveHistory()
type CommandHistory ¶
type CommandHistory struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*CLE)
Option is a func type received by CLE. Each one allows configuration of the CLE.
func HistoryFile ¶
func HistorySize ¶
func ReportErrors ¶
func SearchModeChar ¶
Click to show internal directories.
Click to hide internal directories.