tui

package module
v0.0.0-...-4d48ef5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	KeyCtrlA terminput.Key = iota + 1 // 1
	KeyCtrlB
	KeyCtrlC
	KeyCtrlD
	KeyCtrlE
	KeyCtrlF
	KeyCtrlG
	KeyCtrlH
	KeyCtrlI
	KeyCtrlJ
	KeyCtrlK
	KeyCtrlL
	KeyCtrlM
	KeyCtrlN
	KeyCtrlO
	KeyCtrlP
	KeyCtrlQ
	KeyCtrlR
	KeyCtrlS
	KeyCtrlT
	KeyCtrlU
	KeyCtrlV
	KeyCtrlW
	KeyCtrlX
	KeyCtrlY
	KeyCtrlZ
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TUI

type TUI interface {
	Run() error
	Stop()
	SetWorker(worker Worker)
}

func New

func New() TUI

type Worker

type Worker interface {
	Init() error
	Close() error
	View() string
	HandleInput(e *terminput.KeyboardInput)
}

Directories

Path Synopsis
components
examples

Jump to

Keyboard shortcuts

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