Documentation ¶
Index ¶
- Constants
- func Constrain(val int, min int, max int) int
- func InputParser(s tcell.Screen, commands chan Executer, wg *sync.WaitGroup)
- func ProcessCommands(commands <-chan Executer, states chan<- State, lastStateChan chan<- *State, ...)
- type Buf
- type Event
- type Executer
- type Line
- type LineInput
- type State
- type VisualState
Constants ¶
View Source
const ( Rune = iota CtrlA CtrlB CtrlC CtrlD CtrlE CtrlF CtrlG CtrlH Tab CtrlJ CtrlK CtrlL CtrlM CtrlN CtrlO CtrlP CtrlQ CtrlR CtrlS CtrlT CtrlU CtrlV CtrlW CtrlX CtrlY CtrlZ ESC CtrlSpace Invalid Resize Mouse DoubleClick BTab BSpace Del PgUp PgDn Left Right Home End SLeft SRight SUp SDown F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Change AltSpace AltSlash AltBS Alt0 AltA = Alt0 + 'a' - '0' + iota AltB AltC AltD AltE AltF AltZ = AltA + 'z' - 'a' CtrlAltA = AltZ + 1 CtrlAltM = CtrlAltA + 'm' - 'a' )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VisualState ¶
type VisualState struct {
// contains filtered or unexported fields
}
func NewVisualState ¶
func NewVisualState(linesArray []string, style tcell.Style) VisualState
func NewVisualStateWithOffset ¶
func NewVisualStateWithOffset(linesArray []string, style tcell.Style, offset int) VisualState
func (VisualState) GetBounds ¶
func (vs VisualState) GetBounds() (int, int)
func (VisualState) MoveCursor ¶
func (VisualState) MoveCursor(offx, offy int)
func (VisualState) SetCursor ¶
func (VisualState) SetCursor(int, int)
Click to show internal directories.
Click to hide internal directories.