Documentation ¶ Index ¶ Constants func Cursor() int func History() ([]string, int) func Input() string type Status func ProcessKey(ev *tcell.EventKey) Status Constants ¶ View Source const ( Reading = Status(iota) Done Aborted ) Variables ¶ This section is empty. Functions ¶ func Cursor ¶ func Cursor() int func History ¶ func History() ([]string, int) func Input ¶ func Input() string Types ¶ type Status ¶ type Status int func ProcessKey ¶ func ProcessKey(ev *tcell.EventKey) Status ProcessKey processes a single key input. If the key changed the status to Done or Aborted, the current line will be cleared and either added to the history or discarded. Source Files ¶ View all Source files readline.go Click to show internal directories. Click to hide internal directories.