From bc98e4af411b64026d9a6e90408f9d260c6f0d85 Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 24 May 2018 11:41:18 +0200 Subject: [PATCH] clear status line after dismissing quit dialog --- mines.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mines.c b/mines.c index bea6a6c..d4f0b68 100644 --- a/mines.c +++ b/mines.c @@ -188,6 +188,8 @@ int minesviiper(void) { move_ph (f.h-1+LINE_OFFSET+LINES_AFTER, 0); printf ("quit game? [Y/n]"); if (getch_wrapper() != 'n') return GAME_QUIT; + move_ph (f.h-1+LINE_OFFSET+LINES_AFTER, 0); + printf("\033[2K"); fflush(stdout); /* clear line */ redraw_cell (g.p[0], g.p[1], HIGHLIGHT); break; case CTRL_'L': -- 2.39.3