void curses_display_init(DisplayState *ds, int full_screen)

{

#ifndef _WIN32

    if (!isatty(1)) {

        fprintf(stderr, "We need a terminal output\n");

        exit(1);

    }

#endif



    curses_setup();

    curses_keyboard_setup();

    atexit(curses_atexit);



#ifndef _WIN32

    signal(SIGINT, SIG_DFL);

    signal(SIGQUIT, SIG_DFL);

#if defined(SIGWINCH) && defined(KEY_RESIZE)

    /* some curses implementations provide a handler, but we

     * want to be sure this is handled regardless of the library */

    signal(SIGWINCH, curses_winch_handler);

#endif

#endif



    ds->data = (void *) screen;

    ds->linesize = 0;

    ds->depth = 0;

    ds->width = 640;

    ds->height = 400;

    ds->dpy_update = curses_update;

    ds->dpy_resize = curses_resize;

    ds->dpy_refresh = curses_refresh;

    ds->dpy_text_cursor = curses_cursor_position;



    invalidate = 1;



    /* Standard VGA initial text mode dimensions */

    curses_resize(ds, 80, 25);

}

void curses_display_init(DisplayState *ds, int full_screen)

{

#ifndef _WIN32

    if (!isatty(1)) {

        fprintf(stderr, "We need a terminal output\n");

        exit(1);

    }

#endif



    curses_setup();

    curses_keyboard_setup();

    atexit(curses_atexit);



#ifndef _WIN32

    signal(SIGINT, SIG_DFL);

    signal(SIGQUIT, SIG_DFL);

#if defined(SIGWINCH) && defined(KEY_RESIZE)

    



    signal(SIGWINCH, curses_winch_handler);

#endif

#endif



    ds->data = (void *) screen;

    ds->linesize = 0;

    ds->depth = 0;

    ds->width = 640;

    ds->height = 400;

    ds->dpy_update = curses_update;

    ds->dpy_resize = curses_resize;

    ds->dpy_refresh = curses_refresh;

    ds->dpy_text_cursor = curses_cursor_position;



    invalidate = 1;



    

    curses_resize(ds, 80, 25);

}

void FUNC_0(DisplayState *VAR_0, int VAR_1)

{

#ifndef _WIN32

    if (!isatty(1)) {

        fprintf(stderr, "We need a terminal output\n");

        exit(1);

    }

#endif



    curses_setup();

    curses_keyboard_setup();

    atexit(curses_atexit);



#ifndef _WIN32

    signal(SIGINT, SIG_DFL);

    signal(SIGQUIT, SIG_DFL);

#if defined(SIGWINCH) && defined(KEY_RESIZE)

    



    signal(SIGWINCH, curses_winch_handler);

#endif

#endif



    VAR_0->data = (void *) screen;

    VAR_0->linesize = 0;

    VAR_0->depth = 0;

    VAR_0->width = 640;

    VAR_0->height = 400;

    VAR_0->dpy_update = curses_update;

    VAR_0->dpy_resize = curses_resize;

    VAR_0->dpy_refresh = curses_refresh;

    VAR_0->dpy_text_cursor = curses_cursor_position;



    invalidate = 1;



    

    curses_resize(VAR_0, 80, 25);

}

void FUNC_0(DisplayState *VAR_0, int VAR_1)
{ #ifndef _WIN32
if (!isatty(1)) { fprintf(stderr, "We need a terminal output\n"); exit(1); } #endif
curses_setup(); curses_keyboard_setup(); atexit(curses_atexit); #ifndef _WIN32
signal(SIGINT, SIG_DFL); signal(SIGQUIT, SIG_DFL); #if defined(SIGWINCH) && defined(KEY_RESIZE)
signal(SIGWINCH, curses_winch_handler); #endif
#endif
VAR_0->data = (void *) screen; VAR_0->linesize = 0; VAR_0->depth = 0; VAR_0->width = 640; VAR_0->height = 400; VAR_0->dpy_update = curses_update; VAR_0->dpy_resize = curses_resize; VAR_0->dpy_refresh = curses_refresh; VAR_0->dpy_text_cursor = curses_cursor_position; invalidate = 1; curses_resize(VAR_0, 80, 25); }