Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!rayssd!m1b From: m1b@rayssd.RAY.COM (M. Joseph Barone) Newsgroups: comp.os.vms Subject: Re: Discussion of SMG routines Message-ID: <1467@rayssd.RAY.COM> Date: Tue, 18-Aug-87 13:13:12 EDT Article-I.D.: rayssd.1467 Posted: Tue Aug 18 13:13:12 1987 Date-Received: Thu, 20-Aug-87 06:20:19 EDT References: <8707230859.AA20058@ucbvax.Berkeley.EDU> Sender: m1b@rayssd.RAY.COM (M. Joseph Barone @ Raytheon Company, Portsmouth RI) Reply-To: m1b@rayssd.RAY.COM (M. Joseph Barone) Distribution: world Organization: Raytheon Company, Portsmouth RI Lines: 41 Keywords: SMG, termtable Summary: use termtable In article <8707230859.AA20058@ucbvax.Berkeley.EDU> RALPH@UHHEPG.BITNET writes: > The nicest feature is its hardware-independence: you don't have to care > whether the screen is a VT1xx or VT2xx. Unfortunately it can't be tailored > for non-DEC VT220 compatibles (it would be nice and efficient if i could > teach it to use all the possible escape-sequences of my Falco 5220). SMG routines support any Non-Digital terminal in the world, provided that it has an entry in TERMTABLE.EXE. DEC supplies you with a source file SMGTERMS.TXT which has entries for many (if not all) of their terminals. We have an additional file, called NONDECTERMS.TXT, which includes entries for the more prevalent terminal devices at our site. TERMTABLE.TXT is processed by the SMGBLDTRM.EXE program to create an image file called TERMTABLE.EXE. Our TERMTABLE.TXT looks like this: REQUIRE 'SYS$SYSTEM:SMGTERMS' ! contains definitions for DEC terminals REQUIRE 'NONDECTERMS' ! contains definitions for Non DEC terminals This is all documented in Vol 8B, System Routines, starting on page 3-27. (This is true for VMS V4.X documentation set.) In order to write your own terminal definitions, all you need is the terminal manual, the above reference manual, and some time. Another nice feature of TERMTABLE is that there is the capability to define 10 private strings to use as you wish using the SMG routine, SMG$GET_TERM_DATA. If anyone is interested, I have terminal entries for Zenith Z19s, Z29s, and Z39s in both ZDS and ANSI modes and entries for HDS (Human Design Systems) in 80 and 132 column modes. With these entries, any program using SMG routines works fine. As a side note, I found it quite humorous that the SWING source uses SMG routines and then checks to see if the terminal is in ANSI mode! My first modification to SWING was to remove this check. PS: Sorry for the late followup! Joe Barone ---------------------------> m1b@rayssd.RAY.COM {cbosgd, gatech, ihnp4, linus, mirror, uiucdcs}!rayssd!m1b Heroes have an infinite capacity for stupidity. Thus are legends born!