home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20408 < prev    next >
Encoding:
Text File  |  1992-12-14  |  926 b   |  49 lines

  1. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!ghgapai
  2. Organization: K.U.Leuven - Academic Computing Center
  3. Date: Monday, 14 Dec 1992 20:58:52 +01
  4. From: <GHGAPAI@cc1.kuleuven.ac.be>
  5. Message-ID: <92349.205852GHGAPAI@cc1.kuleuven.ac.be>
  6. Newsgroups: comp.os.linux
  7. Subject: Bug in curses library ?
  8. Lines: 39
  9.  
  10. Hello,
  11.  
  12. I'am having problems with the following program which uses curses.
  13. The program crashes in the function wrefresh(). Has anyone had this
  14. problem before, or am i doing something wrong ?
  15. I'am using Linux 0.98pl6 and gcc 2.2.2d7.
  16.  
  17. #include <stdio.h>
  18. #include <curses.h>
  19.  
  20. main() {
  21.  
  22.    WINDOW *window;
  23.    int i;
  24.  
  25.    initscr();
  26.  
  27.    window=newwin(15,80,0,0);
  28.    scrollok(window,1);
  29.  
  30.    for(i=1;i<100;i++) {
  31.        wprintw(window,"dit is lijn %d\n",i);
  32.        wrefresh(window);
  33.    }
  34.  
  35.    wrefresh(window);
  36.    wgetch(window);
  37.  
  38.    endwin();
  39.  
  40.    return;
  41. }
  42.  
  43. Thanks in advance for your reply.
  44. Greetings, Peter
  45.  
  46.  
  47.  
  48.  
  49.