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!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.dls.net!news.dls.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 18 May 2005 21:09:05 -0500 Message-ID: <428BF52E.FFCC1082@comcast.net> Date: Wed, 18 May 2005 21:08:46 -0500 From: David J Dachtera Reply-To: djesysno@spam.earthlink.net Organization: DJE Systems X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.terminals,comp.sys.dec,comp.os.vms Subject: Re: DO HLP HLD BRK PRN and other keymappings 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> <118nebitfnerq7a@corp.supernews.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.15.152.30 X-AuthenticatedUsername: djesys@dls.net X-Trace: sv3-Brh05DokLE98l4zG7v11rPWnetc2nwfiKAO5G4vuNAnpuK29PhBkUgrsWCW8Erw0cwVshF1wVy0e3R5!hhZz/0ghVfxBDKwTiTxe9xMsnxDBqaE9Mh22nqffKPlotbQ2/lyFSpgfviBa8hoBpZA= X-Complaints-To: abuse@dls.net X-DMCA-Complaints-To: abuse@dls.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.terminals:417 comp.sys.dec:1604 comp.os.vms:27250 Thomas Dickey wrote: > > 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. Well, yes and no. Actually, I recall from working with my first UN*X system that I had to create a termcap entry for the tube I was using at the time. Don't recall the make just now, but it had an ANSI-compatible emulation (such as it was at the time) that included having an "application" mode for the numeric keypad. The sequences were something like \001\003, \001\007\, \001\012\, etc.; the first character was (I believe) a CTRL+A followed by someother control character, not introduced by an escape. > 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). Not sure where to find doc.'s on SMG (Screen Management Guidelines) these days. I suspect that there are other mnemonics not includes in the SMGTERMS.TXT file, but documented elsewhere. -- David J Dachtera dba DJE Systems http://www.djesys.com/ Unofficial OpenVMS Hobbyist Support Page: http://www.djesys.com/vms/support/ Unofficial Affordable OpenVMS Home Page: http://www.djesys.com/vms/soho/ Unofficial OpenVMS-IA32 Home Page: http://www.djesys.com/vms/ia32/ Coming soon: Unofficial OpenVMS Marketing Home Page