home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!vesseur
- From: vesseur@fwi.uva.nl (Joep Vesseur)
- Subject: problems with curses
- Message-ID: <1992Sep8.071332.16774@fwi.uva.nl>
- Summary: curses kills me
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: gene.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- Date: Tue, 8 Sep 1992 07:13:32 GMT
- Lines: 40
-
- hi,
-
- i've got problems with curses. running the following program (with
- mcc's gcc2.2.2d + linus' 097.4)
-
- #include <curses.h>
- #include <stdio.h>
-
- main(int argc, char *argv[])
- {
- WINDOW *stdscr;
- int i;
- int until= 0;
-
- stdscr= initscr();
- idlok(stdscr, TRUE);
- scrollok(stdscr, TRUE);
- if (argc > 1)
- sscanf(argv[1], "%d", &until);
-
- for (i= 0; i < until; i++) {
- wprintw(stdscr, "dit is regel %d\n", i);
- wrefresh(stdscr);
- }
- endwin();
- }
-
- when run with a number, it should print that many lines, while
- scrolling the screen if it gets filled. this works fine on other
- unix systems, but on linux it
- - doesn't scroll (well, it does, but only one line. it then
- goes to the top of the screen (not printing one line) and
- resumes)
- - gives a segmentation fault and illegal adres errors.
- i have to admit that i don't have extensive documentation on curses
- (just the man page), but then, it works on other systems.
-
- thanx for any info.
-
- joep.
-