readline

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reading = Status(iota)
	Done
	Aborted
)

Variables

This section is empty.

Functions

func Cursor

func Cursor() int

func History

func History() ([]string, int)

func Input

func Input() string

Types

type Status

type Status int

func ProcessKey

func ProcessKey(ev *tcell.EventKey) Status

ProcessKey processes a single key input. If the key changed the status to Done or Aborted, the current line will be cleared and either added to the history or discarded.

Jump to

Keyboard shortcuts

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