https://github.com/raphexion/minibubbletea
A minimal bubbletea program.
https://github.com/raphexion/minibubbletea
Last synced: 4 days ago
JSON representation
A minimal bubbletea program.
- Host: GitHub
- URL: https://github.com/raphexion/minibubbletea
- Owner: Raphexion
- Created: 2021-05-28T17:38:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T17:47:49.000Z (about 4 years ago)
- Last Synced: 2025-04-01T20:47:19.599Z (3 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mini Bubbletea
My attempt at the smallest possible bubbletea tui.
Quit by pressing "q".## Key insights
The hardest part of this trivial program is the `tick()` function and how it is used.
Especially we check what type of message we get in `Update(msg tea.Msg)`. We should
only return the `tick()` if we get a `tickMsg()`.So the tick only comes once. Then we need to trigger it again.