Documentation
¶
Overview ¶
Package backend defines the runtime abstraction used by interact/ui.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileRequired indicates the backend requires an *os.File input. ErrFileRequired = errors.New("interact/backend: file input required") // ErrTTYRequired indicates the backend requires a terminal input stream. ErrTTYRequired = errors.New("interact/backend: tty required") )
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key string
Key defines a normalized key value.
const ( KeyUnknown Key = "" KeyEnter Key = "enter" KeyUp Key = "up" KeyDown Key = "down" KeyLeft Key = "left" KeyRight Key = "right" KeyHome Key = "home" KeyEnd Key = "end" KeyTab Key = "tab" KeyShiftTab Key = "shift+tab" KeyPageUp Key = "pageup" KeyPageDown Key = "pagedown" KeySpace Key = "space" KeyEsc Key = "esc" KeyBackspace Key = "backspace" KeyDelete Key = "delete" KeyCtrlC Key = "ctrl+c" KeyCtrlA Key = "ctrl+a" KeyCtrlE Key = "ctrl+e" KeyCtrlK Key = "ctrl+k" KeyCtrlU Key = "ctrl+u" KeyCtrlW Key = "ctrl+w" KeyY Key = "y" KeyN Key = "n" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fake provides an in-memory backend for interaction tests.
|
Package fake provides an in-memory backend for interaction tests. |
|
Package plain provides a line-based backend for interact/ui.
|
Package plain provides a line-based backend for interact/ui. |
|
Package readline provides a minimal raw-terminal event backend for interact/ui.
|
Package readline provides a minimal raw-terminal event backend for interact/ui. |
Click to show internal directories.
Click to hide internal directories.