From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: DO HLP HLD BRK PRN and other keymappings
Date: Wed, 18 May 2005 21:53:54 -0000 [thread overview]
Message-ID: <118nebitfnerq7a@corp.supernews.com> (raw)
In-Reply-To: 428A8106.9A86F244@comcast.net
In comp.terminals David J Dachtera <djesys.nospam@comcast.net> wrote:
>> agreed - the host doesn't know enough to use the terminal efficiently.
>>
>> > So, the behavior will be terminal/type-specific.
>>
>> right - smgterms.txt doesn't tell as much as termcap or terminfo would.
> Can you cite some items from termcap that smgterms lacks? ...and
> vice-versa?
Well, mostly I see different syntax. Ignoring that, the differences are
based on the types of terminals that they're supporting.
smgterms has a few predefined items for which there is no conventional
termcap setting, e.g., (reading smgterms):
width_narrow = "$[?3l", width_wide = "$[?3h",
noting however, that termcap's capability list is not predefined -
applications use conventions. terminfo usually (except for ncurses)
uses wholly predefined capabilities, like smgterms. Most of the
data I see in smgterms corresponds 1-1 with termcap/terminfo
capabilities. Some that do not are the names given to the vt100
line-drawing characters, e.g.,
upper_right_corner = "k", vertical_bar = "x",
but that's part of the ac (termcap) or acsc (terminfo) string.
smgterms has predefined names for (no surprise) the application mode of
the DEC vt100 numeric keypad:
key_0 = "$Op", key_1 = "$Oq", key_2 = "$Or", key_3 = "$Os",
key_4 = "$Ot", key_5 = "$Ou", key_6 = "$Ov", key_7 = "$Ow",
key_8 = "$Ox", key_9 = "$Oy",
key_comma = "$Ol", key_minus = "$Om", key_period = "$On",
key_enter = "$OM", key_pf1 = "$OP", key_pf2 = "$OQ",
key_pf3 = "$OR", key_pf4 = "$OS", key_down_arrow = "$[B",
So generally what smgterms has that termcap doesn't have is a lot of
names for things that apply specifically to DEC terminals.
termcap/terminfo have settings to handle cases that do not appear on
DEC terminals, e.g., (bce is the flag I mentioned before):
back_color_erase bce be Screen erased with background color
can_change ccc cc Terminal can re-define existing
color
ceol_standout_glitch xhp xs Standout not erased by overwriting
(hp)
has_meta_key km km Has a meta key (shift, sets parity
bit)
hue_lightness_saturation hls hl Terminal uses only HLS color
notation (Tektronix)
I don't see any setting in smgterms that's telling the number of colors
the terminal supports. There are some apparent afterthoughts such as
begin_user1 = "$[30m", end_user1 = "$[m",
begin_user2 = "$[34m", end_user2 = "$[m",
Comparing it only against terminfo, I don't see (at first) any indication in
smgterms that it supports expressions such as terminfo's sgr string:
sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
so what I'm mostly seeing in smgterms is comparable to termcap, i.e.,
plugging in parameters based on position, e.g.,
set_cursor_abs = "$[!UL;!ULH", smgterms
:cm=\E[%i%d;%dH: termcap
cup=\E[%i%p1%d;%p2%dH, terminfo
But that reminds me that vt52 wouldn't work with only positional parameters.
I see this:
SET_CURSOR_ABS = '$Y(%1+31)(%2+31)', smgterms
:cm=\EY%+ %+ : termcap
cup=\EY%p1%' '%+%c%p2%' '%+%c, terminfo
So smgterms does have some expression capability (not used much - I only
see it used in the vt52 and vt55).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
next prev parent reply other threads:[~2005-05-18 21:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tFM6e.184$II.110@news.itd.umich.edu>
[not found] ` <xFmge.1368$II.579@news.itd.umich.edu>
2005-05-11 19:00 ` DO HLP HLD BRK PRN and other keymappings Richard S. Shuford
2005-05-12 1:17 ` David J Dachtera
2005-05-13 10:22 ` Thomas Dickey
2005-05-16 18:59 ` David J Dachtera
2005-05-16 19:22 ` Thomas Dickey
2005-05-16 19:58 ` David J Dachtera
2005-05-16 22:36 ` Thomas Dickey
2005-05-17 23:40 ` David J Dachtera
2005-05-18 21:53 ` Thomas Dickey [this message]
2005-05-19 2:08 ` David J Dachtera
2005-05-19 10:19 ` Thomas Dickey
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox