Subject: Bug in ncurses???
From: Igor Bujna <[email-masked]>
To: Christopher Faylor <[email-masked]>
Date: Thu, 07 Feb 2002 09:50:21 +0100

Hi ,
i have this test program in ncurses:
-----------------------------------------------
#include <ncurses.h>

int main(int argc, char **argv)
{
    int ch,i;
    WINDOW *win[2];

    initscr();
    raw();
    keypad(stdscr, TRUE);
    noecho();
   cbreak ();

    /* When i this routines remove, on screen is nothing. WHY??? */
    refresh();

    win[0] = newwin(LINES, COLS / 2, 0, 0);
    win[1] = newwin(LINES, COLS / 2, 0, COLS / 2);

    for (i = 0; i < 2; i++) {
        wborder(win[i], '|', '|', '-', '-', '+', '+', '+', '+');
        wprintw(win[i], "Ahoj!");
        wrefresh(win[i]);
    }

    ch = getch();
    refresh();
    for (i = 0; i < 2; i++)
        delwin(win[i]);
    endwin();
    return 0;
}

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/