mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
Make start_tui
function synchronous
This commit is contained in:
parent
2ec774b4c3
commit
94f3da4e64
2 changed files with 2 additions and 2 deletions
|
@ -347,7 +347,7 @@ impl TaskwarriorTui {
|
|||
Ok(app)
|
||||
}
|
||||
|
||||
pub async fn start_tui(&mut self) -> Result<Terminal<CrosstermBackend<std::io::Stdout>>> {
|
||||
pub fn start_tui(&mut self) -> Result<Terminal<CrosstermBackend<std::io::Stdout>>> {
|
||||
enable_raw_mode()?;
|
||||
let mut stdout = std::io::stdout();
|
||||
execute!(stdout, EnterAlternateScreen, EnableMouseCapture)?;
|
||||
|
|
|
@ -114,7 +114,7 @@ async fn tui_main(report: &str) -> Result<()> {
|
|||
|
||||
let mut app = app::TaskwarriorTui::new(report, true).await?;
|
||||
|
||||
let mut terminal = app.start_tui().await?;
|
||||
let mut terminal = app.start_tui()?;
|
||||
|
||||
let r = app.run(&mut terminal).await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue