From ff0ea41c869fa5ae84c75fc261f3e81a693e3c02 Mon Sep 17 00:00:00 2001 From: Emmanuel Mathi-Amorim Date: Tue, 30 Nov 2021 22:47:12 -0500 Subject: Fix issue where last line is not cleared when SIGINT is received When we close the application using the quit function F10, the last line is cleared so that on terminals which do not support ALTBUF the last line is not clobbered. This do not happen when the application exits as a result of a signal (SIGINT,SIGTERM,SIGQUIT). Move the logic to clear the last line into the CRT_done function. This ensures that it will be executed when the CRT_handleSIGTERM is called. --- CommandLine.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'CommandLine.c') diff --git a/CommandLine.c b/CommandLine.c index b2ad06e0..3a45d820 100644 --- a/CommandLine.c +++ b/CommandLine.c @@ -375,11 +375,6 @@ int CommandLine_run(const char* name, int argc, char** argv) { ScreenManager_run(scr, NULL, NULL); - attron(CRT_colors[RESET_COLOR]); - mvhline(LINES - 1, 0, ' ', COLS); - attroff(CRT_colors[RESET_COLOR]); - refresh(); - Platform_done(); CRT_done(); -- cgit v1.2.3