Explorar el Código

Updated something...

master
Ognjen Milan Robovic hace 8 meses
padre
commit
7d874870a3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      xurses.c

+ 3
- 1
xurses.c Ver fichero

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


Cargando…
Cancelar
Guardar