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
- Host: GitHub
- URL: https://github.com/emicklei/tviewplus
- Owner: emicklei
- Created: 2020-10-14T06:37:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-13T12:45:54.000Z (about 4 years ago)
- Last Synced: 2025-04-01T01:51:07.309Z (3 months ago)
- Topics: terminal-app, terminal-ui, tview
- Language: Go
- Homepage:
- Size: 1020 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

© 2020 ernestmicklei.com