cursor

package
v0.0.0-...-df23a76 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 2 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

This section is empty.

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 and reads from stdin.

func (*Cursor) Down

func (c *Cursor) Down(n int)

Down moves the cursor n lines.

func (*Cursor) EraseLine

func (c *Cursor) EraseLine()

EraseLine deletes the contents of the current line.

func (*Cursor) Up

func (c *Cursor) Up(n int)

Up moves the cursor n lines.

Jump to

Keyboard shortcuts

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