mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Change tick to 250ms
This commit is contained in:
parent
3fb3d1c4e2
commit
2a88938a38
1 changed files with 4 additions and 2 deletions
|
@ -18,6 +18,8 @@ use termion::{
|
|||
};
|
||||
use tui::{backend::TermionBackend, Terminal};
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
use std::env;
|
||||
use std::process::Command;
|
||||
|
||||
use app::App;
|
||||
use app::InputMode;
|
||||
|
@ -33,13 +35,14 @@ fn setup_terminal() -> Result<Terminal<B>, io::Error> {
|
|||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
// Terminal initialization
|
||||
let mut terminal = setup_terminal()?;
|
||||
|
||||
// Setup event handlers
|
||||
let mut events = Events::with_config(Config {
|
||||
exit_key: Key::Char('q'),
|
||||
tick_rate: Duration::from_secs(1),
|
||||
tick_rate: Duration::from_millis(250),
|
||||
});
|
||||
events.disable_exit_key();
|
||||
|
||||
|
@ -59,6 +62,5 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
break
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue