Documentation ¶
Index ¶
- Constants
- func CursorBack(n int)
- func CursorDown(n int)
- func CursorForward(n int)
- func CursorHide()
- func CursorHorizontalAbsolute(x int)
- func CursorNextLine(n int)
- func CursorPreviousLine(n int)
- func CursorShow()
- func CursorUp(n int)
- func EraseInLine(mode int)
- func GetReadline() (*readline.Instance, error)
- func NewAnsiStderr() io.Writer
- func NewAnsiStdout() io.Writer
- func Print(a ...interface{}) (n int, err error)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Println(a ...interface{}) (n int, err error)
Constants ¶
View Source
const ( KeyArrowLeft = '\x02' KeyArrowRight = '\x06' KeyArrowUp = '\x10' KeyArrowDown = '\x0e' KeySpace = ' ' KeyEnter = '\r' )
Variables ¶
This section is empty.
Functions ¶
func CursorPreviousLine ¶
func CursorPreviousLine(n int)
Move cursor to beginning of the line n lines up.
func EraseInLine ¶
func EraseInLine(mode int)
func GetReadline ¶
GetReadline returns the readline instance with the correct configuration
func NewAnsiStderr ¶
Returns special stderr, which converts escape sequences to Windows API calls on Windows environment.
func NewAnsiStdout ¶
Returns special stdout, which converts escape sequences to Windows API calls on Windows environment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.