lin@CS.WMICH.EDU (Lite Lin) (03/04/91)
Hello, I have a couple of questions regarding the curses package. The problem is with scrolling. I've tried both BSD and SYS V curses packages. BSD curses gives me annoying glitches (following the advice of a kind netter, now I do insert/delete instead of repainting the whole screen as I did before, that definitely helps but doesn't solve the whole problem), whether I'm on a SUN (shelltool or cmdtool) or a VT100 terminal. So I switched to SYS V last night, it turns out now the program does fine on a VT100 terminal (thanks to its hardware insert/delete capability), but it now makes the screen TREMBLE on a SUN as soon as I try to scroll! That is, it happens when I say, try to addstr(str) beyond the bottom of the screen (with scrollok() set to TRUE); and what makes me even more puzzled is, it happens as soon as addstr() is called, BEFORE refresh() is called. So, I guess my questions are, (1) Is the BSD package inherently wrong in some way that it has to cause glitches when doing scrolling? (2) I'm pretty sure that I'm doing something wrong with the SYS V package just because the screen trembles so badly, but what could have gone wrong? Is that possible to use curses and yet do scrolling nicely on a non-VT100 terminal? (3) A kind netter told me sometime before that there is PD curses package called pcurses which does better than BSD curses, and that it had several variants for PC (PC curses v1.4 is available in Vol 5 of comp.sources.misc), but I was not able to find pcurses which is supposed to be for UNIX machines. Any information? Any response via email or on the net will be gratefully received. Thanks, Lite