Browse Source

Updated something...

master
Ognjen Milan Robovic 8 months ago
parent
commit
7d874870a3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      xurses.c

+ 3
- 1
xurses.c View File

@@ -55,12 +55,14 @@ void curses_initialize (void) {
for (key = ' '; key != '~'; ++key) { for (key = ' '; key != '~'; ++key) {
curses_unbind (key); curses_unbind (key);
} }

terminal_clear ();
} }


void curses_deinitialize (void) { void curses_deinitialize (void) {
curses_screen = deallocate (curses_screen); 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."); fatal_failure (tcsetattr (STDIN_FILENO, TCSAFLUSH, & curses_old_terminal) == -1, "tcsetattr: Failed to set default terminal attributes.");
} }


Loading…
Cancel
Save