Updated something...
This commit is contained in:
parent
66f800c380
commit
7d874870a3
4
xurses.c
4
xurses.c
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user