Documentation ¶
Index ¶
- type TermboxApi
- type TermboxWrapper
- func (t TermboxWrapper) CellBuffer() []termbox.Cell
- func (t TermboxWrapper) Clear(fg, bg termbox.Attribute) error
- func (t TermboxWrapper) Close()
- func (t TermboxWrapper) Flush()
- func (t TermboxWrapper) HideCursor()
- func (t TermboxWrapper) Init() error
- func (t TermboxWrapper) Interrupt()
- func (t TermboxWrapper) ParseEvent(data []byte) termbox.Event
- func (t TermboxWrapper) PollEvent() termbox.Event
- func (t TermboxWrapper) PollRawEvent(data []byte) termbox.Event
- func (t TermboxWrapper) SetCell(x, y int, ch rune, fg, bg termbox.Attribute)
- func (t TermboxWrapper) SetCursor(x, y int)
- func (t TermboxWrapper) SetInputMode(mode termbox.InputMode) termbox.InputMode
- func (t TermboxWrapper) SetOutputMode(mode termbox.OutputMode) termbox.OutputMode
- func (t TermboxWrapper) Size() (int, int)
- func (t TermboxWrapper) Sync() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TermboxApi ¶
type TermboxApi interface { Init() error Interrupt() Close() Flush() SetCursor(x, y int) HideCursor() SetCell(x, y int, ch rune, fg, bg termbox.Attribute) CellBuffer() []termbox.Cell ParseEvent(data []byte) termbox.Event PollRawEvent(data []byte) termbox.Event PollEvent() termbox.Event Size() (int, int) Clear(fg, bg termbox.Attribute) error SetInputMode(mode termbox.InputMode) termbox.InputMode SetOutputMode(mode termbox.OutputMode) termbox.OutputMode Sync() error }
type TermboxWrapper ¶
type TermboxWrapper struct {
TermboxApi
}
func NewTermboxWrapper ¶
func NewTermboxWrapper() *TermboxWrapper
func (TermboxWrapper) CellBuffer ¶
func (t TermboxWrapper) CellBuffer() []termbox.Cell
func (TermboxWrapper) Close ¶
func (t TermboxWrapper) Close()
func (TermboxWrapper) Flush ¶
func (t TermboxWrapper) Flush()
func (TermboxWrapper) HideCursor ¶
func (t TermboxWrapper) HideCursor()
func (TermboxWrapper) Init ¶
func (t TermboxWrapper) Init() error
func (TermboxWrapper) Interrupt ¶
func (t TermboxWrapper) Interrupt()
func (TermboxWrapper) ParseEvent ¶
func (t TermboxWrapper) ParseEvent(data []byte) termbox.Event
func (TermboxWrapper) PollEvent ¶
func (t TermboxWrapper) PollEvent() termbox.Event
func (TermboxWrapper) PollRawEvent ¶
func (t TermboxWrapper) PollRawEvent(data []byte) termbox.Event
func (TermboxWrapper) SetCell ¶
func (t TermboxWrapper) SetCell(x, y int, ch rune, fg, bg termbox.Attribute)
func (TermboxWrapper) SetCursor ¶
func (t TermboxWrapper) SetCursor(x, y int)
func (TermboxWrapper) SetInputMode ¶
func (t TermboxWrapper) SetInputMode(mode termbox.InputMode) termbox.InputMode
func (TermboxWrapper) SetOutputMode ¶
func (t TermboxWrapper) SetOutputMode(mode termbox.OutputMode) termbox.OutputMode
func (TermboxWrapper) Size ¶
func (t TermboxWrapper) Size() (int, int)
func (TermboxWrapper) Sync ¶
func (t TermboxWrapper) Sync() error
Click to show internal directories.
Click to hide internal directories.