Documentation ¶
Overview ¶
Package screen configures the screen, basically remembering the size and foreground and background colours.
Index ¶
- type Screen
- func (screen *Screen) BoldPrintAt(x int, y int, text string)
- func (screen *Screen) Clear()
- func (screen *Screen) ClearLine(x int, y int)
- func (screen *Screen) Close()
- func (screen *Screen) Flush()
- func (screen *Screen) Height() int
- func (screen *Screen) InvertedClearLine(x int, y int)
- func (screen *Screen) InvertedPrintAt(x int, y int, text string)
- func (screen *Screen) PrintAt(x int, y int, text string)
- func (screen *Screen) SetSize(width, height int)
- func (screen *Screen) Size() (int, int)
- func (screen Screen) TermBoxChan() chan termbox.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Screen ¶ added in v1.0.11
type Screen struct {
// contains filtered or unexported fields
}
Screen is a wrapper around termbox
func (*Screen) BoldPrintAt ¶ added in v1.0.11
BoldPrintAt displays bold text at the location specified, but does not try to display outside of the screen boundary.
func (*Screen) ClearLine ¶ added in v1.0.11
ClearLine clears the line with spaces to the right hand side of the screen
func (*Screen) Close ¶ added in v1.0.11
func (screen *Screen) Close()
Close closes the screen prior to shutdown
func (*Screen) Flush ¶ added in v1.0.11
func (screen *Screen) Flush()
Flush pushes out the pending changes to the screen
func (*Screen) InvertedClearLine ¶ added in v1.1.8
InvertedClearLine clears the line with inverted spaces to the right hand side of the screen
func (*Screen) InvertedPrintAt ¶ added in v1.0.11
InvertedPrintAt displays text inverting background and foreground colours at the location specified, but does not try to display outside of the screen boundary.
func (*Screen) PrintAt ¶ added in v1.0.11
PrintAt prints the characters at the requested location while they fit in the screen
func (*Screen) SetSize ¶ added in v1.0.11
SetSize records the size of the screen and if the terminal gets longer then clear out the bottom line.
func (Screen) TermBoxChan ¶ added in v1.0.11
TermBoxChan creates a channel for termbox.Events and run a poller to send these events to the channel. Return the channel to the caller..