Skip to content

Commit

Permalink
clean up and reorder terminal actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Việt Trọng Dương authored Sep 11, 2024
1 parent 5c44aab commit ffdd80e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ use crossterm::{
Show,
},
event::{
DisableBracketedPaste,
DisableFocusChange,
DisableMouseCapture,
EnableBracketedPaste,
EnableFocusChange,
EventStream as CrosstermEventStream,
},
Expand Down Expand Up @@ -264,11 +262,10 @@ impl Tui {
enable_raw_mode()?;
execute!(
stdout(),
Hide,
EnableBracketedPaste,
EnableFocusChange,
DisableBlinking,
EnterAlternateScreen,
Hide,
MoveTo(0, 0)
)?;
Ok(())
Expand All @@ -279,7 +276,6 @@ impl Tui {
disable_raw_mode()?;
execute!(
stdout(),
DisableBracketedPaste,
DisableMouseCapture,
DisableFocusChange,
EnableBlinking,
Expand Down

0 comments on commit ffdd80e

Please sign in to comment.