Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run[T any]( ctx context.Context, input *os.File, output io.Writer, initial T, updates <-chan T, render func(T) string, ) error
Run renders a live terminal screen until the context or update channel stops it.
Types ¶
type KeyHandler ¶ added in v0.51.8
KeyHandler handles a raw key byte from the terminal.
Click to show internal directories.
Click to hide internal directories.