fixed unusual terminal state after quitting
This commit is contained in:
parent
b1256014e3
commit
9c45259962
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user