Documentation ¶
Index ¶
- Constants
- func GetCursorPosition() (col int, line int, err error)
- func GetScreenDimensions() (cols int, lines int, err error)
- type Cursor
- func (c *Cursor) EraseAll() *Cursor
- func (c *Cursor) EraseCurrentLine() *Cursor
- func (c *Cursor) EraseDown() *Cursor
- func (c *Cursor) EraseUp() *Cursor
- func (c *Cursor) ModeRaw() *Cursor
- func (c *Cursor) ModeRestore() *Cursor
- func (c *Cursor) Move(col, line int) *Cursor
- func (c *Cursor) MoveDown(nLines int) *Cursor
- func (c *Cursor) MoveLeft(nSpaces int) *Cursor
- func (c *Cursor) MoveRight(nSpaces int) *Cursor
- func (c *Cursor) MoveUp(nLines int) *Cursor
- func (c *Cursor) Reset() *Cursor
- func (c *Cursor) SetBackgroundColor(color int) *Cursor
- func (c *Cursor) SetColor(color int) *Cursor
- func (c *Cursor) SetColorBold(color int) *Cursor
- func (c *Cursor) SetDefaultStyle() *Cursor
- type Position
- type Style
Constants ¶
View Source
const ( // control ESC = 27 // style BLACK = 0 RED = 1 GREEN = 2 YELLOW = 3 BLUE = 4 MAGENTA = 5 CYAN = 6 WHITE = 7 FORGROUND = 30 BACKGROUND = 40 )
Variables ¶
This section is empty.
Functions ¶
func GetCursorPosition ¶
func GetScreenDimensions ¶
using named returns to help when using the method to know what is what
Types ¶
type Cursor ¶
type Cursor struct { Position StartingPosition Position Style // contains filtered or unexported fields }
func (*Cursor) EraseCurrentLine ¶
func (*Cursor) ModeRestore ¶
func (*Cursor) SetBackgroundColor ¶
func (*Cursor) SetColorBold ¶
func (*Cursor) SetDefaultStyle ¶
Click to show internal directories.
Click to hide internal directories.