Restore curses after running external command
This allows running TUI tools like vim via run_external_command without destroying the ncmpcpp curses output.
This commit is contained in:
committed by
Andrzej Rybczak
parent
1ef061a87c
commit
81cb7a4f85
@@ -443,6 +443,17 @@ void initScreen(bool enable_colors, bool enable_mouse)
|
||||
rl_startup_hook = rl::add_base;
|
||||
}
|
||||
|
||||
void pauseScreen()
|
||||
{
|
||||
def_prog_mode();
|
||||
endwin();
|
||||
}
|
||||
|
||||
void unpauseScreen()
|
||||
{
|
||||
refresh();
|
||||
}
|
||||
|
||||
void destroyScreen()
|
||||
{
|
||||
Mouse::disable();
|
||||
|
||||
Reference in New Issue
Block a user