🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.terminals
Article #2146

Re: Magic cookie terminals

#2146
From: John Robert LoVerso
Date: Thu, 08 Sep 1988 16:04
36 lines
2271 bytes
In an article, Nozomu Arimoto <arimoto@hpycla.HP.COM> writes:
> When a display enhancement is turned on or turned off on Magic cookie
> terminals, it leaves one or even two blanks on the screen.
> So if the commands (man command and etc.) which are related to the
> display are used on Magic cookie terminals, the display is incorrect.
> Blanks are inserted preceding the first character of the highlighting
> character string and following the last character of the highlighting
> character string.
> 
> How about this problem?

Both Termcap and terminfo have a kludge to handle this.  In addition to
"so" (begin standout mode) and "se" (end standout mode), there is an
"sg" capability, "number of garbage characters left by so or se".  The
same goes for underline mode "us/ue/ug".  One problem is that the "m?"
capabilities (mb/md/me/mh/mk/mp/mr) doesn't have an equivalent "mg".

Unfortunately, some (older) code in 4.3BSD that uses termcap doesn't
even recognize the "ug" capability.  That's ok, 'cause (the normally
superior) terminfo *only* lets you specify a magic cookie glitch for
"so/se".

On a Wyse 75, the "enhance mode" doesn't use a magic cookie (but you
can only get one of dim, inverse, underline for the enter screen),
while the "field attributes" do use magic cookies (but give you
choices of dim, blink, blank, underline, and inverse, in all
combinations).  For my own wyse 75 termcap, I have so/se using
the "enter enhance mode" with the enhance attribute set to inverse.
I have us/ue/ug using the field attribute underline.  I'd also like
to be able to use the "m?" capabilities via the "field attributes",
but if I do, things look bad because there's no way to specify that
they use a magic cookie (garbage character).

John Robert LoVerso
Encore Computer Corp
encore!loverso, loverso@multimax.arpa, [soon: LoVerso@Encore.COM]
Technical Details
Message-ID: <3575@encore.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!m2c!necntc!encore!loverso
References: <1880003@hpycla.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!m2c!necntc!encore!loverso
From: loverso@encore.UUCP (John Robert LoVerso)
Newsgroups: comp.terminals
Subject: Re: Magic cookie terminals
Message-ID: <3575@encore.UUCP>
Date: 8 Sep 88 16:04:04 GMT
References: <1880003@hpycla.HP.COM>
Reply-To: loverso@encore.UUCP (John Robert LoVerso)
Organization: Encore Computer Corp, Marlboro, MA
Lines: 35