Documentation ¶
Index ¶
Constants ¶
View Source
const ( Key0 tcell.Key = iota + 48 Key1 Key2 Key3 Key4 Key5 Key6 Key7 Key8 Key9 )
Defines numeric keys for container actions.
View Source
const ( KeyShift0 tcell.Key = 41 KeyShift1 tcell.Key = 33 KeyShift2 tcell.Key = 64 KeyShift3 tcell.Key = 35 KeyShift4 tcell.Key = 36 KeyShift5 tcell.Key = 37 KeyShift6 tcell.Key = 94 KeyShift7 tcell.Key = 38 KeyShift8 tcell.Key = 42 KeyShift9 tcell.Key = 40 )
Defines numeric keys for container actions.
View Source
const ( KeyA tcell.Key = iota + 97 KeyB KeyC KeyD KeyE KeyF KeyG KeyH KeyI KeyJ KeyK KeyL KeyM KeyN KeyO KeyP KeyQ KeyR KeyS KeyT KeyU KeyV KeyW KeyX KeyY KeyZ KeyHelp = 63 KeySlash = 47 KeyColon = 58 KeySpace = 32 )
Defines char keystrokes.
View Source
const ( KeyShiftA tcell.Key = iota + 65 KeyShiftB KeyShiftC KeyShiftD KeyShiftE KeyShiftF KeyShiftG KeyShiftH KeyShiftI KeyShiftJ KeyShiftK KeyShiftL KeyShiftM KeyShiftN KeyShiftO KeyShiftP KeyShiftQ KeyShiftR KeyShiftS KeyShiftT KeyShiftU KeyShiftV KeyShiftW KeyShiftX KeyShiftY KeyShiftZ )
Define Shift Keys.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller mediates between the model and the view.
func NewController ¶
NewController creates a new Controller to run the app.
type KeyEvent ¶
type KeyEvent struct { Description string Action func(*tcell.EventKey) *tcell.EventKey }
KeyEvent defines an event associated with a keypress.
type StatusContent ¶
type StatusContent struct { tview.TableContentReadOnly // contains filtered or unexported fields }
StatusContent implements tview.TableContent, which tview.Table uses to update data.
func (*StatusContent) GetCell ¶
func (s *StatusContent) GetCell(row, col int) *tview.TableCell
GetCell returns the cell at the given position or nil if no cell.
func (*StatusContent) GetColumnCount ¶
func (s *StatusContent) GetColumnCount() int
GetColumnCount returns the number of columns in the table.
func (*StatusContent) GetRowCount ¶
func (s *StatusContent) GetRowCount() int
GetRowCount returns the number of rows in the table.
Click to show internal directories.
Click to hide internal directories.