[net.bugs.4bsd] A possible solution to getting curses scrolling...

laman@sdcsvax.UUCP (Mike Laman) (05/30/84)

Curses foiled again...

Someone in net.unix asked a similar question to what "lorien" asked earlier.
I responded to a personal message from her, which helped me to fully
understand just what she wanted.

She wanted curses to be "intelligent" enough to output a new line and thus
have the screen do the scrolling (which is obviously faster).  I am
now telling the net what I told her, since this seems to becoming popular.

I have never done it, so you might find a bug or two (in which case I would
be VERY interested in hearing about and helping to fix); but I would
scroll BOTH "stdscr" AND "curscr".  Scrolling "curscr" should get a newline
outputted on the screen and scrolling "stdscr" keeps your image like you
would want it.

I hope y'all find this of some use...

			Mike Laman
			UUCP: {ucbvax,philabs,sdccsu3,sdcsla}!sdcsvax!laman

P.S.  I like tinkering around with curses, so let me know if there is a bug.