See https://eugenkiss.github.io/7guis/tasks for the descriptions of each task.
-
This project is for learning
tviewand building TUI apps only. The code is neither optimized nor truely correct. -
Keyboard shortcuts navigation is pretty non-standard. Please don't expect
Tab,Shift-Taband work as usual. Most of the time,TabandShift-Tabswitch betweent the sidebar and the widget view. Mouse control should works as expected (albeit rather laggy) for input fields, slider and buttons.
See demos in ./media folder if the content below isn't playable.
counter.mp4
temp_converter.mp4
flight.mp4
timer.mp4
circle_drawer.mp4
cells.mp4
This project requires go version 1.13 or higher to use go modules. If you clone the source locally, then just run it via:
$ go run .If you have go1.17 or higher, which support install command, you can install
the demo and run via:
$ go install github.com/letientai299/7guis/tui@latest
$ tuiThe application is not supposed to be useful, so, you might want to remove the installed binary after play around with it.
$ rm $GOPATH/bin/tuiFor quick edit and review loop, use nodemon to watch for code change, rebuild
and restart the application via:
$ nodemon -w . -e .go -x './restart.sh'-
tview.Formoverrides each input fields style. Hence, after Temperature Converter, for other form component, I rather use the field directly to support color changes during validation. -
tviewdoesn't have a reactive system, hence, it's very painful to implement these exercises in it. Or, perhaps I'm just too stupid to figure out the correct way to implement them.

