hadden@srcsip.UUCP (George D. Hadden) (05/24/88)
hi, does anyone know of a terminal emulator program which will diddle the meta bit when alt is held down? i.e., hold down alt while pressing "f" three times send three meta-f's. second choice would be an emulator that sends "esc f esc f esc f" under the same conditions. thanks in advance. -geo --- George D. Hadden, Honeywell Systems and Research Center PHONE: (612)782-7769 MAIL: 3660 Technology Drive MN65-2100 Minneapolis, MN 55418 ARPA: hadden@src.honeywell.com UUCP: {ihnp4, philabs, umn-cs, ems}!srcsip!hadden
terry@wsccs.UUCP (Every system needs one) (06/11/88)
In article <4239@altura.srcsip.UUCP>, hadden@srcsip.UUCP (George D. Hadden) writes: > > hi, does anyone know of a terminal emulator program which will diddle > the meta bit when alt is held down? i.e., hold down alt while > pressing "f" three times send three meta-f's. second choice would be > an emulator that sends "esc f esc f esc f" under the same conditions. Ours will. Basically, you just want to set the high bit or send an escape first? The keyboard is completely remappable in the script language. To send the first case (hi-bit set): setkey altf "\xc5" or setkey altf chr(asc("f")+128) or setkey altf chr(197) The second case (escape-prefixing): setkey altf "\033f" or setkey altf "\x1bf" or setkey altf "\x1b"+"f" This could be transparently done for the user on startup (since not everyone uses the alt keys normally) by putting it in your startup file. Of course, you probably want to do all of the keys: setvar char 0 repeat setkey alt$(chr(char+65)) chr(191+char) ! hi-bit setvar char char+1 until char=26 or, more understandably: for i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do setkey alt$(i) chr(asc(i)&128) ! hi-bit setkey alt$(i) "\033"+i ! prefix endfor Currently, we don't differentiate between uppercase and lowercase alternate characters. Hope that doesn't blow me out of the water... | Terry Lambert UUCP: ...{ decvax, ihnp4 } ...utah-cs!century!terry | | @ Century Software OR: ...utah-cs!uplherc!sp7040!obie!wsccs!terry | | SLC, Utah | | These opinions are not my companies, but if you find them | | useful, send a $20.00 donation to Brisbane Australia... | | 'Signatures; it's not how long you make them, it's how you make them long!' |