Updated something...

This commit is contained in:
Ognjen Milan Robovic 2023-09-20 06:28:31 -04:00
parent 66f800c380
commit 7d874870a3

View File

@ -55,12 +55,14 @@ void curses_initialize (void) {
for (key = ' '; key != '~'; ++key) {
curses_unbind (key);
}
terminal_clear ();
}
void curses_deinitialize (void) {
curses_screen = deallocate (curses_screen);
out ("\033[2J\033[H", string_length ("\033[2J\033[H"));
terminal_clear ();
fatal_failure (tcsetattr (STDIN_FILENO, TCSAFLUSH, & curses_old_terminal) == -1, "tcsetattr: Failed to set default terminal attributes.");
}