Revision 28695489 curses.c
b/curses.c | ||
---|---|---|
333 | 333 |
void curses_display_init(DisplayState *ds, int full_screen) |
334 | 334 |
{ |
335 | 335 |
DisplayChangeListener *dcl; |
336 |
static Notifier notifier = { .notify = curses_atexit }; |
|
337 | 336 |
#ifndef _WIN32 |
338 | 337 |
if (!isatty(1)) { |
339 | 338 |
fprintf(stderr, "We need a terminal output\n"); |
... | ... | |
343 | 342 |
|
344 | 343 |
curses_setup(); |
345 | 344 |
curses_keyboard_setup(); |
346 |
exit_notifier_add(¬ifier);
|
|
345 |
atexit(curses_atexit);
|
|
347 | 346 |
|
348 | 347 |
#ifndef _WIN32 |
349 | 348 |
#if defined(SIGWINCH) && defined(KEY_RESIZE) |
Also available in: Unified diff