An open API service indexing awesome lists of open source software.

https://github.com/emicklei/tviewplus

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

terminal-app terminal-ui tview

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](test.png)

© 2020 ernestmicklei.com