Documentation ¶
Overview ¶
Package cursor provides functionality to interact with the terminal cursor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EraseLine ¶ added in v1.1.0
func EraseLine(fw terminal.FileWriter)
EraseLine erases a line from a FileWriter.
func EraseLinesAbove ¶ added in v1.1.0
func EraseLinesAbove(fw terminal.FileWriter, n int)
EraseLinesAbove erases a line and moves the cursor up from fw, repeated n times.
func TestEraseLine ¶ added in v1.21.0
TestEraseLine is POSIX-only since the implementation in the underlying library is completely different on Windows.
Types ¶
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
Cursor represents the terminal's cursor.
func NewWithWriter ¶ added in v1.1.0
New creates a new cursor that writes to the given out writer.
Click to show internal directories.
Click to hide internal directories.