This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Bug in ncurses???
- From: Igor Bujna <igor dot bujna at maxi-tip dot cz>
- To: Christopher Faylor <cygwin at cygwin dot com>
- Date: Thu, 07 Feb 2002 09:50:21 +0100
- Subject: Bug in ncurses???
- Organization: Sázková kancelář Maxi-tip a.s.
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/