diff options
| author | Dmitry Matveyev <greenfork.lists@yandex.com> | 2021-06-27 16:49:39 +0600 |
|---|---|---|
| committer | Dmitry Matveyev <greenfork.lists@yandex.com> | 2021-06-27 16:49:39 +0600 |
| commit | dbfbb1b5a6b5151002b43cd9e6c475a0c1274bd7 (patch) | |
| tree | 019e97ac78f631219c51508aca58fe61bc60ae96 /src | |
| parent | c68f85659f419a59a477c2dc7464a66ab6e67ec5 (diff) | |
Restore terminal during suspend before changing alternate screen
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 737640cb..f9938632 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -380,7 +380,6 @@ void NCursesUI::suspend() enable_mouse(false); bool change_color_enabled = m_palette.get_change_colors(); m_palette.set_change_colors(false); - endwin(); auto current = set_signal_handler(SIGTSTP, SIG_DFL); sigset_t unblock_sigtstp, old_mask; @@ -388,6 +387,7 @@ void NCursesUI::suspend() sigaddset(&unblock_sigtstp, SIGTSTP); sigprocmask(SIG_UNBLOCK, &unblock_sigtstp, &old_mask); restore_terminal_mode(); + endwin(); raise(SIGTSTP); // suspend here |
