mse@ih1ap.UUCP (Scott Erickson) (02/17/84)
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
mcooper@oberon.UUCP (Michael Cooper) (10/25/85)
I posted an article a couple of weeks ago on this, but never got any response. Probably because our news link (sdcrdcf) was down for a while and things might have gotten mungled. I'm having this problem with curses and trying to get a string. I've tried using the standard getstr(), but despite what it says in the documents and the code itself (as far as I could tell) about ending the str with a newline, it does not work for me. getstr() just keeps on reading 'em on in. Nothing short of killing the process will get me out of it. I haven't run into this one before. Is this a standard curses bug? Any ideas around it? Thanks in advance.... -- +-----------------------------------------------------------------------------+ | Michael Cooper USENET: ...!{uscvax, sdcrdcf, engvax, | | University of Southern Cal. scgvaxd, smeagol}!oberon!mcooper | | University Computing Services BITNET: mcooper@uscvaxq, mcooper@jaxom | | Los Angeles, Ca. 90089-0251 ARPA: mcooper@usc-oberon.arpa, | | (213) 743-3469 mcooper@usc-eclc.arpa | +-----------------------------------------------------------------------------+