Curses problem

Scott Erickson mse at ih1ap.UUCP
Fri Feb 17 08:13:13 AEST 1984


Attention "curses" gurus:

I'm trying to write a function to read and display a multi-page file using the
curses library routines.  I would like to use "scrollok(stdscr,TRUE)" to scroll
the screen when the page is full.  However, scrollok produces no noticable 
affect.  Anything after line 23 is printed across line 23.  The source basic-
ally looks like this:

		fopen(LOG, "a+");
		initscr();
		raw();
		noecho();
		idlok(stdscr,TRUE);
		scrollok(stdscr,TRUE);
		move(0,0);
		while ((c = getc(fd)) != EOF)
			addch(c);
		fclose(fd);
		refresh();

If anyone has any idea what the problme might be, I would appreciate a reply.

						Thanks
-- 


						Scott Erickson
						AT&T Bell Laboratories
						Naperville, Il.
						ihnp4!ih1ap!mse



More information about the Comp.lang.c mailing list