Documentation ¶
Index ¶
- func NewStyle(bg, fg tcell.Color) tcell.Style
- type TerminalContext
- func (tc *TerminalContext) Center() (int, int)
- func (tc *TerminalContext) ClearScreen()
- func (tc *TerminalContext) DrawBox(x1, y1, w, h int, style tcell.Style)
- func (tc *TerminalContext) DrawBoxWithCorneredText(x1, y1, w, h int, style tcell.Style, text string)
- func (tc *TerminalContext) DrawText(x1, y1 int, style tcell.Style, text string) error
- func (tc *TerminalContext) Size() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TerminalContext ¶
func NewTerminalContext ¶
func NewTerminalContext() TerminalContext
func (*TerminalContext) Center ¶
func (tc *TerminalContext) Center() (int, int)
func (*TerminalContext) ClearScreen ¶
func (tc *TerminalContext) ClearScreen()
func (*TerminalContext) DrawBox ¶
func (tc *TerminalContext) DrawBox(x1, y1, w, h int, style tcell.Style)
func (*TerminalContext) DrawBoxWithCorneredText ¶
func (tc *TerminalContext) DrawBoxWithCorneredText(x1, y1, w, h int, style tcell.Style, text string)
func (*TerminalContext) Size ¶
func (tc *TerminalContext) Size() (int, int)
Click to show internal directories.
Click to hide internal directories.