dave@astra.necisa.oz (Dave Horsfall) (09/25/87)
(Sys V users only) Those of you who have the extremely useful "untic" program distributed some time ago may be interested in this. Apparently, somebody added a few extra attributes to "tic", and didn't tell anyone. I've got no idea what they do, but I extracted them from dumping out "tic". What's "untic"? A program that de-compiles terminfo files, produced by "tic"! If only AT&T supplied some utility like it, compiled terminfo files are pretty useless otherwise. This may not relate to your system at all, I'm using some Japan-derived system, so it may relate to Kanji terminals or something. It's a PATCH file, so don't UNSHAR it. *** untic.cold Fri Sep 25 15:52:08 1987 --- untic.c Fri Sep 25 15:55:49 1987 *************** *** 51,56 * TERMINFO environment variable added by hp-pcd!hplabs!csun!aeusemrs * (again) 16 Jan 87. Time to get this out. * * I disclaim that this program does anything useful. It might also * do accidental damage. Backup your original terminfo files. * --- 51,59 ----- * TERMINFO environment variable added by hp-pcd!hplabs!csun!aeusemrs * (again) 16 Jan 87. Time to get this out. * + * Modified by Dave Horsfall (dave@astra.necisa.oz.AU) 25/9/87 + * to add extra variables that someone snuck into TIC... + * * I disclaim that this program does anything useful. It might also * do accidental damage. Backup your original terminfo files. * *************** *** 253,259 static char *booleans[] = /* Names of boolean variables, in order */ { "bw", "am", "xsb", "xhp", "xenl", "eo", "gn", "hc", "km", "hs", "in", "da", "db", "mir", "msgr", "os", "eslok", "xt", ! "hz", "ul", "xon" }; static char *numerics[] = /* Names of numeric variables, in order */ { "cols", "it", "lines", "lm", "xmc", "pb", "vt", "wsl" }; static char *strings[] = /* Names of string variables, not in strict --- 256,263 ----- static char *booleans[] = /* Names of boolean variables, in order */ { "bw", "am", "xsb", "xhp", "xenl", "eo", "gn", "hc", "km", "hs", "in", "da", "db", "mir", "msgr", "os", "eslok", "xt", ! "hz", "ul", "xon", ! "Kdev", "Zcur" }; /* DH - no I don't know */ static char *numerics[] = /* Names of numeric variables, in order */ { "cols", "it", "lines", "lm", "xmc", "pb", "vt", "wsl", "Gcode", "pbk" }; /* DH again */ *************** *** 255,261 "hs", "in", "da", "db", "mir", "msgr", "os", "eslok", "xt", "hz", "ul", "xon" }; static char *numerics[] = /* Names of numeric variables, in order */ ! { "cols", "it", "lines", "lm", "xmc", "pb", "vt", "wsl" }; static char *strings[] = /* Names of string variables, not in strict order. Makes things a little harder */ { "cbt", "bel", "cr", "csr", "tbc", "clear", "el", "ed", "hpa", --- 259,266 ----- "hz", "ul", "xon", "Kdev", "Zcur" }; /* DH - no I don't know */ static char *numerics[] = /* Names of numeric variables, in order */ ! { "cols", "it", "lines", "lm", "xmc", "pb", "vt", "wsl", ! "Gcode", "pbk" }; /* DH again */ static char *strings[] = /* Names of string variables, not in strict order. Makes things a little harder */ { "cbt", "bel", "cr", "csr", "tbc", "clear", "el", "ed", "hpa", *************** *** 274,280 "ich", "indn", "il", "cub", "cuf", "rin", "cuu", "pfkey", "pfloc", "pfx", "mc0", "mc4", "mc5", "rep", "rs1", "rs2", "rs3", "rf", "rc", "vpa", "sc", "ind", "ri", "sgr", "hts", "wind", "ht", "tsl", ! "uc", "hu", "iprog", "ka1", "ka3", "kb2", "kc1", "kc3", "mc5p" }; int str_cap[sizeof(strings) / sizeof(char *)]; /* Check the magic number out */ --- 279,286 ----- "ich", "indn", "il", "cub", "cuf", "rin", "cuu", "pfkey", "pfloc", "pfx", "mc0", "mc4", "mc5", "rep", "rs1", "rs2", "rs3", "rf", "rc", "vpa", "sc", "ind", "ri", "sgr", "hts", "wind", "ht", "tsl", ! "uc", "hu", "iprog", "ka1", "ka3", "kb2", "kc1", "kc3", "mc5p", ! "Kinit", "Kend", "Kst" }; /* DH again */ int str_cap[sizeof(strings) / sizeof(char *)]; /* Check the magic number out */ Share and enjoy... -- Dave Horsfall (VK2KFU) ACSnet/CSNET: dave@astra.necisa.oz NEC Information Systems Aust. ARPA: dave%astra.necisa.oz@uunet.uu.net 3rd Floor, 99 Nicholson St JANET: astra.necisa.oz!dave@ukc St. Leonards 2064 AUSTRALIA UUCP: {enea,hplabs,mcvax,uunet,ukc}!\ TEL: +61 2 438-3544 FAX: 439-7036 munnari!astra.necisa.oz!dave