From 9c45259962fcf387a8f636eec7d3e84bddc2ab89 Mon Sep 17 00:00:00 2001 From: thorium1256 Date: Mon, 30 Jun 2025 11:06:57 +0300 Subject: [PATCH] fixed unusual terminal state after quitting --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index bc86305..1c11e2c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -178,10 +178,10 @@ void startGame(Board &board) cursorX = (cursorX < boardSize.x - 1) ? cursorX + 1 : 0; break; case 'q': - exit(0); echo(); cbreak(); endwin(); + exit(0); break; case 'z': if (!somethingHasBeenDone) @@ -286,10 +286,10 @@ void startGame(Board &board) } else if (c == 'q') { - exit(0); echo(); cbreak(); endwin(); + exit(0); } }; } @@ -318,10 +318,10 @@ void startGame(Board &board) } else if (c == 'q') { - exit(0); echo(); cbreak(); endwin(); + exit(0); } }; }