mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-27 15:47:19 +02:00
Merge pull request #105 from kdheepak/fix-alacritty-bug
This commit is contained in:
commit
4b92e6e957
2 changed files with 2 additions and 5 deletions
3
.github/workflows/cd.yml
vendored
3
.github/workflows/cd.yml
vendored
|
@ -5,9 +5,6 @@ on:
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -144,7 +144,7 @@ impl Events {
|
||||||
|
|
||||||
pub fn pause_key_capture(&self, terminal: &mut Terminal<CrosstermBackend<io::Stdout>>) {
|
pub fn pause_key_capture(&self, terminal: &mut Terminal<CrosstermBackend<io::Stdout>>) {
|
||||||
self.pause_event_loop();
|
self.pause_event_loop();
|
||||||
thread::sleep(Duration::from_millis(250));
|
terminal.flush().unwrap();
|
||||||
disable_raw_mode().unwrap();
|
disable_raw_mode().unwrap();
|
||||||
execute!(io::stdout(), LeaveAlternateScreen, DisableMouseCapture).unwrap();
|
execute!(io::stdout(), LeaveAlternateScreen, DisableMouseCapture).unwrap();
|
||||||
terminal.show_cursor().unwrap();
|
terminal.show_cursor().unwrap();
|
||||||
|
@ -153,7 +153,7 @@ impl Events {
|
||||||
pub fn resume_key_capture(&self, terminal: &mut Terminal<CrosstermBackend<io::Stdout>>) {
|
pub fn resume_key_capture(&self, terminal: &mut Terminal<CrosstermBackend<io::Stdout>>) {
|
||||||
execute!(io::stdout(), EnterAlternateScreen, EnableMouseCapture).unwrap();
|
execute!(io::stdout(), EnterAlternateScreen, EnableMouseCapture).unwrap();
|
||||||
enable_raw_mode().unwrap();
|
enable_raw_mode().unwrap();
|
||||||
thread::sleep(Duration::from_millis(250));
|
terminal.flush().unwrap();
|
||||||
self.resume_event_loop();
|
self.resume_event_loop();
|
||||||
terminal.resize(terminal.size().unwrap()).unwrap();
|
terminal.resize(terminal.size().unwrap()).unwrap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue