cursor

package
v0.0.0-...-c6fe939 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Show returns ANSI escape sequence to show the cursor
	Show = "\x1b[?25h"
	// Hide hides the terminal cursor.
	Hide = "\x1b[?25l"
	// ClearLine clears the current line.
	ClearLine = "\x1b[2K"
	// ClearToRight clears the screen from the cursor to the end of the line.
	ClearToRight = "\x1b[0J"
	// MoveCursorLeft moves the cursor left one character.
	MoveCursorLeft = "\x1b[D"
	// MoveCursorUp moves the cursor up one line.
	MoveCursorUp = "\x1b[1A"
	// MoveCursorDown moves the cursor down one line.
	MoveCursorDown = "\x1b[1B"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL