handler

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputHandler

func InputHandler(keyer *cwkeyer.Keyer, ui UserInterface, cfg *config.Config) func(*tcell.EventKey) *tcell.EventKey

InputHandler processes user input to the TUI. InputHandler accepts a Keyer, TUI, and Config and returns a function to use as the TUI input field capture function.

Types

type UserInterface

type UserInterface interface {
	WriteEvent(level tui.Level, message string)
	ClearEvents()
	InputText() string
	ClearInputText()
	StopApp()
}

UserInterface is an interface of the TUI methods used by InputHandler.

Jump to

Keyboard shortcuts

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