cursor

package
v0.0.0-...-afecb3f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

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

func EraseLine(fw terminal.FileWriter)

EraseLine erases a line from a FileWriter.

func EraseLinesAbove

func EraseLinesAbove(fw terminal.FileWriter, n int)

EraseLinesAbove erases a line and moves the cursor up from fw, repeated n times.

Types

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

Cursor represents the terminal's cursor.

func New

func New() *Cursor

New creates a new cursor that writes to stderr.

Jump to

Keyboard shortcuts

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