home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!ghgapai
- Organization: K.U.Leuven - Academic Computing Center
- Date: Monday, 14 Dec 1992 20:58:52 +01
- From: <GHGAPAI@cc1.kuleuven.ac.be>
- Message-ID: <92349.205852GHGAPAI@cc1.kuleuven.ac.be>
- Newsgroups: comp.os.linux
- Subject: Bug in curses library ?
- Lines: 39
-
- Hello,
-
- I'am having problems with the following program which uses curses.
- The program crashes in the function wrefresh(). Has anyone had this
- problem before, or am i doing something wrong ?
- I'am using Linux 0.98pl6 and gcc 2.2.2d7.
-
- #include <stdio.h>
- #include <curses.h>
-
- main() {
-
- WINDOW *window;
- int i;
-
- initscr();
-
- window=newwin(15,80,0,0);
- scrollok(window,1);
-
- for(i=1;i<100;i++) {
- wprintw(window,"dit is lijn %d\n",i);
- wrefresh(window);
- }
-
- wrefresh(window);
- wgetch(window);
-
- endwin();
-
- return;
- }
-
- Thanks in advance for your reply.
- Greetings, Peter
-
-
-
-
-