https://github.com/maltsev-dev/tui_pomodoro
TUI Pomodoro app.
https://github.com/maltsev-dev/tui_pomodoro
cursive rust rust-lang tui tui-app
Last synced: 11 months ago
JSON representation
TUI Pomodoro app.
- Host: GitHub
- URL: https://github.com/maltsev-dev/tui_pomodoro
- Owner: maltsev-dev
- Created: 2024-11-07T09:38:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-18T03:38:03.000Z (about 1 year ago)
- Last Synced: 2025-03-12T07:18:54.696Z (11 months ago)
- Topics: cursive, rust, rust-lang, tui, tui-app
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Text-based User Interface app. Pomodoro
- create binary crate -> `cargo new project`
- add dependency to `cargo.toml`-> `cursive = "0.21.1"`
- include cursive usage inside `main.rs`
- init `cursive` object
- set terminal `theme`
- create base variables with `Arc::new(Mutex::new())`
- add TUI `Dialog` with buttons
- create 2 `thread`
- * First thread handles countdown of the timer (background thread).
- * Second thread handles refreshing of the UI every second.
- `siv.run()`
### terminal launch
