🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2128

Re: screen bugs/features

#2128
From: Wayne Davison
Date: Wed, 08 Mar 1989 05:26
25 lines
1774 bytes
In article <2800015@kailand> pwolfe@kailand.KAI.COM writes:
>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.

An interesting thing about documentation -- it is often misleading.  The
programmers of many popular packages (including vi & rn) assume that
the variable "cl" homes the cursor.  If you change your termcap to only
clear the screen on a VT100 (from the default of cl=\E[2J\E[H), you will
find that many applications cease to function correctly.  It may not be
documented that way, but that is the way it is defined in actual termcaps.

If you still wish to leave the Goto() call in anyway, it should at least be
changed to be:

	Goto (-1, -1, 0, 0);

since you do not want an optimized cursor move after the ClearScreen()
call if you don't think you know where the cursor really is.  At least
it would only be superfluous, instead of erroneous.
--
 Wayne Davison                                        ...amdahl!drivax!davison
Technical Details
Message-ID: <4370@drivax.DRI>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amdahl!drivax!davison
References: <4318@drivax.DRI> <2800015@kailand>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amdahl!drivax!davison
From: davison@drivax.DRI (Wayne Davison)
Newsgroups: comp.sources.bugs
Subject: Re: screen bugs/features
Message-ID: <4370@drivax.DRI>
Date: 8 Mar 89 05:26:29 GMT
References: <4318@drivax.DRI> <2800015@kailand>
Reply-To: davison@drivax.UUCP (Wayne Davison)
Organization: Digital Research, Inc.
Lines: 25