This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in ncurses???


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]