🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.terminals
Article #1778

termcap/terminfo stupidity?

#1778
From: John LoVerso
Date: Wed, 02 Sep 1987 20:07
24 lines
1827 bytes
Can someone in-the-know tell me why magic-cookie glitches are not fully
described in either termcap or terminfo?  Termcap lets you specify
a magic cookie for standout or underline (sg,ug); terminfo only
has a capability for one magic cookie value (xmc).  Neither try to
describe cookies on attributes (blink, bold, dim, invis, rev).

My problem is that I've got a Wyse WY75.  It has an "enhance attribute
mode" which is magic cookie free.  However, all chars on the screen
written with enhance on have to be the same attribute - dim, inverse, or
underline.  SGR (\E[p0;p1...m) simply turns enhance on or off - only
the last param is effective, 0 being enhance off, >0 on.  So, I've got
standout set to use the enhance mode.  Wyse also includes a WYFDAT
(`field attribute') which gives you the 32 combinations of dim, blink,
blank, underline, and inverse.  However, this uses a magic cookie.
I use this for underline, and the appropriate atrributes.  I can give
"ug" for the underline magic cookie, but not for the others!

BTW, `more' in 4.3 correctly uses so/se/sg and us/ue/ug.  `ul' uses just
so/se, us/ue, plus the other attributes, but it mucks up badly because of
the lack of handling of magic cookies (sg/ug).  *sigh*

--
John LoVerso, Encore Computer Corp
encore!loverso, loverso@multimax.arpa (XXX)
Technical Details
Message-ID: <1894@encore.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!necntc!necis!encore!loverso

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!necntc!necis!encore!loverso
From: loverso@encore.UUCP (John LoVerso)
Newsgroups: comp.terminals,comp.unix.wizards
Subject: termcap/terminfo stupidity?
Message-ID: <1894@encore.UUCP>
Date: Wed, 2-Sep-87 16:07:54 EDT
Article-I.D.: encore.1894
Posted: Wed Sep  2 16:07:54 1987
Date-Received: Sat, 5-Sep-87 10:51:26 EDT
Organization: Encore Computer Corp., Marlboro, MA
Lines: 24
Keywords: glitches