Documentation ¶
Index ¶
- Constants
- func FillText(n, y int, fg, bg termbox.Attribute, c rune)
- func GetMoveValue(r rune) int
- func PrintLine(y int, str string) int
- func PrintText(x, y int, fg, bg termbox.Attribute, text string) int
- func ShiftIndex(ary *[]int, val int)
- type Action
- type ExchangeDraw
- type InputBox
- func (ib *InputBox) DeleteAll()
- func (ib *InputBox) DeleteRuneBackward()
- func (ib *InputBox) DeleteRuneForward()
- func (ib *InputBox) GetCursorPos() int
- func (ib *InputBox) GetInputString() string
- func (ib *InputBox) InsertRune(r rune)
- func (ib *InputBox) InsertStr(s string)
- func (ib *InputBox) MoveCursorOneRuneBackward()
- func (ib *InputBox) MoveCursorOneRuneForward()
- func (ib *InputBox) MoveCursorTo(bOffset int)
- func (ib *InputBox) RuneBeforeCursor() (rune, int)
- func (ib *InputBox) RuneUnderCursor() (rune, int)
- type InputDraw
- func (i *InputDraw) DoChar(r rune)
- func (i *InputDraw) DoEnter()
- func (i *InputDraw) DoKeyArrowLeft()
- func (i *InputDraw) DoKeyArrowRight()
- func (i *InputDraw) DoKeyBackspace()
- func (i *InputDraw) DoKeyCtrlB()
- func (i *InputDraw) DoKeyCtrlF()
- func (i *InputDraw) DoKeyDelete()
- func (i *InputDraw) DoKeySpace()
- func (i *InputDraw) Draw()
- func (i *InputDraw) GetListLength() int
- func (i *InputDraw) Mode() Mode
- type LabelSetDraw
- type Lister
- type Mode
- type NormalDraw
- type Nothing
- func (n Nothing) DoChar(r rune)
- func (n Nothing) DoEnter()
- func (n Nothing) DoKeyArrowLeft()
- func (n Nothing) DoKeyArrowRight()
- func (n Nothing) DoKeyBackspace()
- func (n Nothing) DoKeyCtrlA()
- func (n Nothing) DoKeyCtrlB()
- func (n Nothing) DoKeyCtrlD()
- func (n Nothing) DoKeyCtrlF()
- func (n Nothing) DoKeyCtrlL()
- func (n Nothing) DoKeyCtrlR()
- func (n Nothing) DoKeyCtrlV()
- func (n Nothing) DoKeyCtrlW()
- func (n Nothing) DoKeyCtrlX()
- func (n Nothing) DoKeyDelete()
- func (n Nothing) DoKeyEsc()
- func (n Nothing) DoKeySpace()
- func (n Nothing) DoKeyTab()
- type Operator
- type View
Constants ¶
View Source
const (
INPUT_PREFIX = "> "
)
Variables ¶
This section is empty.
Functions ¶
func GetMoveValue ¶
func ShiftIndex ¶
Types ¶
type ExchangeDraw ¶
func (*ExchangeDraw) DoChar ¶
func (e *ExchangeDraw) DoChar(r rune)
func (*ExchangeDraw) DoEnter ¶
func (e *ExchangeDraw) DoEnter()
func (*ExchangeDraw) Draw ¶
func (e *ExchangeDraw) Draw()
func (*ExchangeDraw) GetListLength ¶
func (e *ExchangeDraw) GetListLength() int
func (*ExchangeDraw) Mode ¶
func (e *ExchangeDraw) Mode() Mode
type InputBox ¶
type InputBox struct {
// contains filtered or unexported fields
}
func NewInputBox ¶
func (*InputBox) DeleteRuneBackward ¶
func (ib *InputBox) DeleteRuneBackward()
func (*InputBox) DeleteRuneForward ¶
func (ib *InputBox) DeleteRuneForward()
func (*InputBox) GetCursorPos ¶
func (*InputBox) GetInputString ¶
func (*InputBox) InsertRune ¶
func (*InputBox) MoveCursorOneRuneBackward ¶
func (ib *InputBox) MoveCursorOneRuneBackward()
func (*InputBox) MoveCursorOneRuneForward ¶
func (ib *InputBox) MoveCursorOneRuneForward()
func (*InputBox) MoveCursorTo ¶
func (*InputBox) RuneBeforeCursor ¶
func (*InputBox) RuneUnderCursor ¶
type InputDraw ¶
func (*InputDraw) DoKeyArrowLeft ¶
func (i *InputDraw) DoKeyArrowLeft()
func (*InputDraw) DoKeyArrowRight ¶
func (i *InputDraw) DoKeyArrowRight()
func (*InputDraw) DoKeyBackspace ¶
func (i *InputDraw) DoKeyBackspace()
func (*InputDraw) DoKeyCtrlB ¶
func (i *InputDraw) DoKeyCtrlB()
func (*InputDraw) DoKeyCtrlF ¶
func (i *InputDraw) DoKeyCtrlF()
func (*InputDraw) DoKeyDelete ¶
func (i *InputDraw) DoKeyDelete()
func (*InputDraw) DoKeySpace ¶
func (i *InputDraw) DoKeySpace()
func (*InputDraw) GetListLength ¶
type LabelSetDraw ¶
func (*LabelSetDraw) DoChar ¶
func (l *LabelSetDraw) DoChar(r rune)
func (*LabelSetDraw) Draw ¶
func (l *LabelSetDraw) Draw()
func (*LabelSetDraw) GetListLength ¶
func (l *LabelSetDraw) GetListLength() int
func (*LabelSetDraw) Mode ¶
func (l *LabelSetDraw) Mode() Mode
type NormalDraw ¶
func (*NormalDraw) ChangeLabel ¶
func (n *NormalDraw) ChangeLabel(i int, label string)
func (*NormalDraw) DoChar ¶
func (n *NormalDraw) DoChar(r rune)
func (*NormalDraw) DoKeyCtrlD ¶
func (n *NormalDraw) DoKeyCtrlD()
func (*NormalDraw) DoKeySpace ¶
func (n *NormalDraw) DoKeySpace()
func (*NormalDraw) Draw ¶
func (n *NormalDraw) Draw()
func (*NormalDraw) GetListLength ¶
func (n *NormalDraw) GetListLength() int
func (*NormalDraw) Mode ¶
func (n *NormalDraw) Mode() Mode
type Nothing ¶
type Nothing struct{}
func (Nothing) DoKeyArrowLeft ¶
func (n Nothing) DoKeyArrowLeft()
func (Nothing) DoKeyArrowRight ¶
func (n Nothing) DoKeyArrowRight()
func (Nothing) DoKeyBackspace ¶
func (n Nothing) DoKeyBackspace()
func (Nothing) DoKeyCtrlA ¶
func (n Nothing) DoKeyCtrlA()
func (Nothing) DoKeyCtrlB ¶
func (n Nothing) DoKeyCtrlB()
func (Nothing) DoKeyCtrlD ¶
func (n Nothing) DoKeyCtrlD()
func (Nothing) DoKeyCtrlF ¶
func (n Nothing) DoKeyCtrlF()
func (Nothing) DoKeyCtrlL ¶
func (n Nothing) DoKeyCtrlL()
func (Nothing) DoKeyCtrlR ¶
func (n Nothing) DoKeyCtrlR()
func (Nothing) DoKeyCtrlV ¶
func (n Nothing) DoKeyCtrlV()
func (Nothing) DoKeyCtrlW ¶
func (n Nothing) DoKeyCtrlW()
func (Nothing) DoKeyCtrlX ¶
func (n Nothing) DoKeyCtrlX()
func (Nothing) DoKeyDelete ¶
func (n Nothing) DoKeyDelete()
func (Nothing) DoKeySpace ¶
func (n Nothing) DoKeySpace()
type Operator ¶
type Operator interface { DoKeyEsc() DoKeyArrowLeft() DoKeyCtrlB() DoKeyArrowRight() DoKeyCtrlF() DoKeyBackspace() DoKeyDelete() DoKeyTab() DoKeyCtrlX() DoKeyCtrlW() DoKeyCtrlL() DoKeyCtrlV() DoKeyCtrlD() DoKeyCtrlA() DoKeyCtrlR() DoKeySpace() DoEnter() DoChar(rune) }
type View ¶
type View struct { Width int Height int Lister Lister Input *InputBox Cursor int Check int Selected []int }
func NewViewWithCheck ¶
func (*View) GetCursorIndex ¶
func (*View) GetSelectedIndex ¶
Click to show internal directories.
Click to hide internal directories.