Skip to content

package that adds extra components to build Terminal applications on top of https://github.com/rivo/tview

Notifications You must be signed in to change notification settings

emicklei/tviewplus

Repository files navigation

tviewplus

This package extends the Terminal application framework https://github.com/rivo/tview.

types

FocusGroup

A FocusGroup can be used to group multiple editable views with respect to getting focus. You can cycle through members of this group using Tab, Enter and BackTab.

StringHolder

A StringHolder adds simple notification to dependents of interface StringChangeHandler. When setting the value (string) all dependents (functions) are called. Typically a StringHolder can be used a Model to decouple the View from the Application (MVP pattern).

StringListSelectionHolder

A StringListSelectionHolder adds simple notification to dependents of interface SelectionChangeHandler. Typically a StringListSelectionHolder is used as the model for a DropDown.

BoolHolder

A BoolHolder adds simple notification to dependents of interface BoolChangeHandler. Typically a BoolHolder is used as the model for a Checkbox.

See test folder a sample program using all extensions.

test screenshot

test.png

© 2020 ernestmicklei.com

About

package that adds extra components to build Terminal applications on top of https://github.com/rivo/tview

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages