Documentation ¶
Index ¶
- type AutoCompleteMenu
- type ColorScheme
- type Shell
- type TermboxWindow
- func (window *TermboxWindow) Display()
- func (window *TermboxWindow) Print(data ...interface{})
- func (window *TermboxWindow) Printf(format string, data ...interface{})
- func (window *TermboxWindow) Reset()
- func (window *TermboxWindow) ScrollDown(height int)
- func (window *TermboxWindow) ScrollUp(height int)
- func (window *TermboxWindow) SetHeight(height int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCompleteMenu ¶ added in v0.0.6
type AutoCompleteMenu struct {
// contains filtered or unexported fields
}
AutoCompleteMenu displays a set of items to select from
func (*AutoCompleteMenu) Backspace ¶ added in v0.0.6
func (m *AutoCompleteMenu) Backspace()
func (*AutoCompleteMenu) Display ¶ added in v0.0.6
func (m *AutoCompleteMenu) Display()
Display the menu
func (*AutoCompleteMenu) Enter ¶ added in v0.0.6
func (m *AutoCompleteMenu) Enter()
func (*AutoCompleteMenu) NavigateLeft ¶ added in v0.0.6
func (m *AutoCompleteMenu) NavigateLeft()
NavigateLeft moves to the item left of the currently selected item
func (*AutoCompleteMenu) NavigateRight ¶ added in v0.0.6
func (m *AutoCompleteMenu) NavigateRight()
NavigateRight moves to the item right of the currently selected item
func (*AutoCompleteMenu) Selected ¶ added in v0.0.6
func (m *AutoCompleteMenu) Selected() string
Selected returns the currently selected item
func (*AutoCompleteMenu) Tab ¶ added in v0.0.6
func (m *AutoCompleteMenu) Tab()
Tab moves moves the selection to the right
type ColorScheme ¶ added in v0.0.4
type ColorScheme int
ColorScheme defines a type aliases for color schemes
const ( // DefaultColorScheme has black background and white foreground DefaultColorScheme ColorScheme = iota // LightColorScheme has white background and black foreground LightColorScheme ColorScheme = iota )
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
Shell is a basic command dispatcher with tab completion, history, and more. It only requires commands to be added and may then be started by calling Start().
func (*Shell) AddCommand ¶
AddCommand appends cmd the list of available commands for this REPL
func (*Shell) Print ¶ added in v0.0.5
func (shell *Shell) Print(data ...interface{})
Print writes str to the shells output, which is used to get text output during execution.
func (*Shell) Printf ¶ added in v0.0.5
Printf writes str as a format string to the shells output, which is used to get text output during execution. The number of lines that can be written is limited to the current size of the terminal.
func (*Shell) SetColorScheme ¶ added in v0.0.4
func (shell *Shell) SetColorScheme(cs ColorScheme) error
SetColorScheme to cs
type TermboxWindow ¶ added in v0.0.6
type TermboxWindow struct {
// contains filtered or unexported fields
}
TermboxWindow represents a rolling window.
func NewTermboxWindow ¶ added in v0.0.6
func NewTermboxWindow(yStart, indent, height int, fg, bg termbox.Attribute) (*TermboxWindow, error)
NewTermboxWindow ...
func (*TermboxWindow) Print ¶ added in v0.0.6
func (window *TermboxWindow) Print(data ...interface{})
Print ...
func (*TermboxWindow) Printf ¶ added in v0.0.6
func (window *TermboxWindow) Printf(format string, data ...interface{})
Printf ...
func (*TermboxWindow) ScrollDown ¶ added in v0.0.6
func (window *TermboxWindow) ScrollDown(height int)
ScrollDown ...
func (*TermboxWindow) ScrollUp ¶ added in v0.0.6
func (window *TermboxWindow) ScrollUp(height int)
ScrollUp ...
func (*TermboxWindow) SetHeight ¶ added in v0.0.6
func (window *TermboxWindow) SetHeight(height int)
SetHeight ...