Documentation
¶
Index ¶
- func Clear()
- func ClearLine()
- func HideCursor()
- func MoveCursorDown(rows int)
- func MoveCursorTo(column int, row int)
- func MoveCursorToColumn(column int)
- func MoveCursorUp(rows int)
- func PrintErrorf(message string, args ...interface{})
- func PrintImportantf(message string, args ...interface{})
- func PrintSuccessf(message string, args ...interface{})
- func Reset()
- func RestoreCursor()
- func SaveCursor()
- func SetAltBuffer()
- func SetMainBuffer()
- func ShowCursor()
- func ShowSensitiveData(data string)
- func Size() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearLine ¶
func ClearLine()
ClearLine removes all content from the current line and moves the cursor to the beginning of the line
func MoveCursorDown ¶
func MoveCursorDown(rows int)
MoveCursorDown moves the cursor down by the given number of rows
func MoveCursorTo ¶
MoveCursorTo moves the cursor to the given position (zero indexed)
func MoveCursorToColumn ¶
func MoveCursorToColumn(column int)
MoveCursorToColumn moves the cursor to the given column (zero indexed)
func MoveCursorUp ¶
func MoveCursorUp(rows int)
MoveCursorUp moves the cursor up by the given number of rows
func PrintErrorf ¶
func PrintErrorf(message string, args ...interface{})
PrintErrorf prints a string to stdout in bold, red text
func PrintImportantf ¶
func PrintImportantf(message string, args ...interface{})
PrintImportantf prints a string to stdout in bold, light blue text
func PrintSuccessf ¶
func PrintSuccessf(message string, args ...interface{})
PrintSuccessf prints a string to stdout in bold, green text
func RestoreCursor ¶
func RestoreCursor()
RestoreCursor restores the position of the cursor to the last position saved with SaveCursor
func ShowSensitiveData ¶
func ShowSensitiveData(data string)
ShowSensitiveData will output a sensitive string in the alt buffer, and reset the terminal once the user presses enter, wiping all trace of the secret from the terminal display buffer
Types ¶
This section is empty.