Documentation ¶
Index ¶
- Constants
- type Cursor
- func (c *Cursor) GetCursor() (int, int, error)
- func (c *Cursor) Move(where CursorMovement, nTimes int)
- func (c *Cursor) RestorePosition()
- func (c *Cursor) SavePosition()
- func (c *Cursor) ScrollDown(lines int)
- func (c *Cursor) ScrollUp(lines int)
- func (c *Cursor) SetCursor(x, y int)
- func (c *Cursor) ShowCursor(show bool)
- type CursorMovement
Constants ¶
View Source
const ( CursorUp cursorMovement = "\x1b[%dA" CursorDown cursorMovement = "\x1b[%dB" CursorLeft cursorMovement = "\x1b[%dC" CursorRight cursorMovement = "\x1b[%dD" ToNextLine cursorMovement = "\x1b[%dE" ToPrevLine cursorMovement = "\x1b[%dF" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
type Cursor struct {
types.ConsoleStream
}
func (*Cursor) Move ¶
func (c *Cursor) Move(where CursorMovement, nTimes int)
func (*Cursor) RestorePosition ¶
func (c *Cursor) RestorePosition()
func (*Cursor) SavePosition ¶
func (c *Cursor) SavePosition()
func (*Cursor) ScrollDown ¶
func (*Cursor) ShowCursor ¶
type CursorMovement ¶
type CursorMovement interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.