textentry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCancelled = errors.New("Text entry was cancelled by user")
	ErrorTooLong   = errors.New("Too much text entry")
)

Functions

This section is empty.

Types

type TextEntry

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

func New

func New(defval, prompt string, maxlen int) *TextEntry

func (*TextEntry) AddBinding

func (te *TextEntry) AddBinding(key tcell.Key, reterr error) *TextEntry

func (*TextEntry) Ask

func (te *TextEntry) Ask(s tcell.Screen, col, lineno int) (answer []rune, reterr error)

Jump to

Keyboard shortcuts

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