Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc!uxc.cso.uiuc.edu!kailand!pwolfe From: pwolfe@kailand.KAI.COM Newsgroups: comp.sources.bugs Subject: Re: screen bugs/features Message-ID: <2800015@kailand> Date: 6 Mar 89 15:14:00 GMT References: <4318@drivax.DRI> Lines: 24 Nf-ID: #R:drivax.DRI:4318:kailand:2800015:000:1231 Nf-From: kailand.KAI.COM!pwolfe Mar 6 09:14:00 1989 /* Written by davison@drivax.DRI in kailand:comp.sources.bugs */ > > In article <2800013@kailand> pwolfe@kailand.KAI.COM writes: > >The two different cursor movement commands after the two ClearScreen calls > >in ansi.c are correct. > > The problem with the two Goto() lines is not where they are sending the > cursor TO but where they think they are coming FROM. In both cases they > have just called ClearScreen() which outputs the termcap variable `cl'. > This variable by definition both homes the cursor and clears the screen. > Thus, in the c code, the Goto() is erroneous and should be removed. On the BSD TERMCAP(5) manpage, "cl" is defined as "clear the screen". It does not mention "and homes the cursor" anywhere. Maybe on the terminal you use, clearing the screen homes the cursor, but this is *NOT* true for every terminal. If you remove that Goto(), then you will break screen for some terminals. While this might not affect you, but if you post patches to the net, you might break it for someone else. Then again, since you are going to send your patches through comp.sources.unix, at least it probably won't get broken until sometime in the 1990's. :-) Patrick Wolfe (pat@kai.com, kailand!pat)