|
|
@@ -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."); |
|
|
|
} |
|
|
|