screen bugs/features

pwolfe at kailand.KAI.COM pwolfe at kailand.KAI.COM
Tue Mar 7 01:14:00 AEST 1989


/* Written by davison at drivax.DRI in kailand:comp.sources.bugs */
>
> In article <2800013 at kailand> pwolfe at 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 <esc>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 at kai.com,  kailand!pat)



More information about the Comp.sources.bugs mailing list