From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 107112,86e5b9a7dfbf8977 X-Google-Thread: 1164f8,779376d7021013b X-Google-Thread: f7344,c469e3586e3e7f83 X-Google-Attributes: gid107112,gid1164f8,gidf7344,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!sn-xit-04!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Thomas Dickey Newsgroups: comp.terminals,comp.sys.dec,comp.os.vms Subject: Re: DO HLP HLD BRK PRN and other keymappings Date: Wed, 18 May 2005 21:53:54 -0000 Organization: RadixNet Internet Services Message-ID: <118nebitfnerq7a@corp.supernews.com> References: <4282AEBD.260D40E7@comcast.net> <1188vvk2kfs9qbe@corp.supernews.com> <4288ED97.3DFB5617@comcast.net> <118hsnomnh7kq18@corp.supernews.com> <4288FB75.F28080C6@comcast.net> <118i835n9qafe80@corp.supernews.com> <428A8106.9A86F244@comcast.net> User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.8 (sun4u)) X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com comp.terminals:416 comp.sys.dec:1603 comp.os.vms:27233 In comp.terminals David J Dachtera 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