[comp.unix.wizards] Termcap

gwyn@brl-smoke.ARPA (Doug Gwyn ) (10/30/87)

In article <9156@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes:
>For instance, termcap does not have a way to start and end boldface
>or blinking modes, both of which are fairly common enhancement
>modes, much like inverse video (black-on-white characters) and
>underline.  Underlining is started by `us' and ended by `ue';
>inverse video is started by `so' and ended by `se'.  By rights
>blinking should be `bs' and `be' or `bl' and be'; boldface should
>be `bs' and `be' or `bo' and `be'.  `bs' is already in use for
>backspace, and clearly `be' cannot be used for both; I wound up
>using `bo' and `be' for bold, and `ws' and `we' for blink (`w' for
>`wink').

Ahem, please follow the official TERMCAP(5) provided with 4.3BSD.
	mb	Turn on blinking attribute
	md	Turn on bold (extra bright) attribute
	me	Turn off all attributes

Termcap does have its problems, and the two-letter mnemonics are
getting rather strained.  The biggest problem, apart from not being
able to support the "sa" (define the [up to 9] video attributes)
capability, is the 1024-character expanded description limit, which
is too small for a complete description of some terminals.

chris@mimsy.UUCP (Chris Torek) (10/30/87)

>In article <9156@mimsy.UUCP> I mentioned:
>>... I wound up using `bo' and `be' for bold, and `ws' and `we'
>>for blink (`w' for `wink').

In article <6629@brl-smoke.ARPA> gwyn@brl-smoke.ARPA (Doug Gwyn ) writes:
>Ahem, please follow the official TERMCAP(5) provided with 4.3BSD.
>	mb	Turn on blinking attribute
>	md	Turn on bold (extra bright) attribute
>	me	Turn off all attributes

What I used, I selected in 1982.  4.3BSD did not exist then.  `ws'
is now the number of columns if the sysline message area.  (See what
I mean about field name collisions?)

Someday I may finish rewriting the window library.  Until then, it
will continue to use bo, be, ws, and we.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
Domain:	chris@mimsy.umd.edu	Path:	uunet!mimsy!chris

ljgardn@anagld.UUCP (Larry J. Gardner) (02/11/89)

	Can someone assist me in implementing termcap on a PDP-11/70.
Currently we have the Berkeley BSD4.1 version.  Are there any improvements?

WPR0986%TNTECH.BITNET@cunyvm.cuny.edu (02/14/89)

In a previous post, <ljgardn@anagld.uucp> (Larry J. Gardner) writes:
>    Can someone assist me in implementing termcap on a PDP-11/70.
> Currently we have the Berkeley BSD4.1 version.  Are there any improvements?

Have you looked into distributions from the Free Software Foundation ?
They have a termcap library written that is distributed with GNU Emacs.
They probably have more code there you may be interested in as well.
I'm sure you can anonymous ftp the sources from somewhere and compile
under your OS.

Good luck!

Walter Rowe (wpr0986@tntech.bitnet)
PO Box 10364
Tenn. Tech. Univ.
Cookeville, TN 38505

aad@stpstn.UUCP (Anthony A. Datri) (02/15/89)

>>    Can someone assist me in implementing termcap on a PDP-11/70.

>Have you looked into distributions from the Free Software Foundation ?

If it's anything like their emacs, it hasn't a chance of running on an 11.
64k adress, 64k data.
-- 
@disclaimer(Any concepts or opinions above are entirely mine, not those of my
	    employer, my GIGI, my VT05, or my 11/34)
beak is@>beak is not
Anthony A. Datri @SysAdmin(Stepstone Corporation) aad@stepstone.com stpstn!aad