diff options
Diffstat (limited to 'curses.c')
-rw-r--r-- | curses.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -333,7 +333,6 @@ static void curses_keyboard_setup(void) void curses_display_init(DisplayState *ds, int full_screen) { DisplayChangeListener *dcl; - static Notifier notifier = { .notify = curses_atexit }; #ifndef _WIN32 if (!isatty(1)) { fprintf(stderr, "We need a terminal output\n"); @@ -343,7 +342,7 @@ void curses_display_init(DisplayState *ds, int full_screen) curses_setup(); curses_keyboard_setup(); - exit_notifier_add(¬ifier); + atexit(curses_atexit); #ifndef _WIN32 #if defined(SIGWINCH) && defined(KEY_RESIZE) |