Bug in curses package

laman at sdcsvax.UUCP laman at sdcsvax.UUCP
Sat May 26 06:01:27 AEST 1984


curses(foiled, again);

I tried sending this message out once, but I got a message from "inews"
about being locked out.  So I'll again.

In reply to "lorien"'s (sorry, but no personal name was given) problem
of windows not scrolling properly, I tried his/her program that was included
in his reply message.  It worked fine on "sdcsvax"!  It did NOT erase the
screen after the initial screen erasure.  It scrolled the lines perfectly.
That is what I understood from his following paragraph (and his code) that
"lorien" wants.

"...  All I want to do is to display pages of data to users without clearing
the screen between pages but rather to begin scrolling in a new page
when they press some character indicating they want to go on. ..."

I am really puzzled why "sdscvax"'s library works fine and yours doesn't.

If the problem that you are having is ONLY with it clearing the screen
after a scroll has been done, I would suggest checking your clear flag in
your WINDOW structure to see if it is somehow getting turned on.
I would also check the second (by what I see) "if" in wrefresh() to see if this
is the code that is causing the (incorrect) clearing of your screen between
refreshes.

How does the program work on other 4.2 BSD systems?  Anyone else try his/her
program?

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

P.S.  I should also mention that there seems to be a bug in scrolling windows
      that are smaller than the "standard screen".  I saw this in the
      System V.2 terminfo/curses sources and plan to look into it when time
      allows.  I seem to remember bumping into a problem like that once when
      I was tinkering around with a program of mine.



More information about the Comp.bugs.4bsd.ucb-fixes mailing list