keyboard

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnterKey      = "ENTER"
	EscapeKey     = "ESCAPE"
	UpArrowKey    = "UP"
	DownArrowKey  = "DOWN"
	LeftArrowKey  = "LEFT"
	RightArrowKey = "RIGHT"
)

Variables

View Source
var (
	Sequences = map[string]string{
		"\x1b[A": UpArrowKey,
		"\x1b[B": DownArrowKey,
		"\x1b[C": RightArrowKey,
		"\x1b[D": LeftArrowKey,

		"\x1bOA": UpArrowKey,
		"\x1bOB": DownArrowKey,
		"\x1bOC": RightArrowKey,
		"\x1bOD": LeftArrowKey,
	}
)

Functions

func ReadInput

func ReadInput(reader *bufio.Reader, file *os.File) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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