Documentation
¶
Index ¶
- func Clear()
- func ClearScrollback()
- func CursorMove(d Direction, n int)
- func CursorPosition(row, col int)
- func CursorRestorePosition()
- func CursorSavePosition()
- func HasGraphicsSupport() bool
- func HideCursor()
- func NewImageWriter(width, height int) io.WriteCloser
- func Rows() (rows int, err error)
- func ShowCursor()
- type Direction
- type TermSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CursorMove ¶
CursorMove moves the cursor n times in the direction d.
func CursorRestorePosition ¶
func CursorRestorePosition()
CursorRestorePosition restores the cursor position/state.
func CursorSavePosition ¶
func CursorSavePosition()
CursorSavePosition saves the cursor position/state.
func HasGraphicsSupport ¶
func HasGraphicsSupport() bool
func NewImageWriter ¶
func NewImageWriter(width, height int) io.WriteCloser
Types ¶
type Direction ¶
type Direction string
Direction constants are to be used with CursorMove.
const ( // Up moves the cursor up. Up Direction = "A" // Down moves the cursor down. Down Direction = "B" // Forward moves the cursor forward. Forward Direction = "C" // Backward moves the cursor backward. Backward Direction = "D" // NextLine cursor to beginning of the line next line. NextLine Direction = "E" // PreviousLine cursor to beginning of the line previous line. PreviousLine Direction = "F" // HorizontalAbsolute the cursor to the specified column. HorizontalAbsolute Direction = "G" )
Click to show internal directories.
Click to hide internal directories.