home *** CD-ROM | disk | FTP | other *** search
- Date: 13 Sep 1988 2311-EDT
- From: LISKOV@XX.LCS.MIT.EDU
- Subject: key re-mapping
- To: info-ibmpc@walker-emh.arpa
-
- Using NANSI.SYS or ANSI.SYS is the poor man's approach to key remapping.
- It is done by using ansi escape sequences such as the following that I
- use in my autoexec.bat to remap the function keys:
-
- echo 9;"swap"13p0;"cls"13p2;"ls -au";13p
- echo 3;"lf";13p4;"copy ";p
- echo 5;"sdl d:/w";13p7;"sdl a:/w";13p8;"sdl c:/w";13p
- echo 6;"sdl e:/w";13p
-
- The 13p appends a carriage return to the remapped sequence. The character
- is the escape character. If you cannot input an escape character in your
- editor the prompt command can be used, for example:
-
- echo on
- prompt $e[0;59;"swap";13p
- prompt $e[0;60;"cls";13p
- prompt $e[0;61;"ls -au";13p
- prompt $e[0;63;"lf ";13p
- prompt $e[0;64;"copy "p
- prompt $e[0;65;"sdl d:/w";13p
- prompt $e[0;110;"sd d:/e";13p
- prompt $e[0;66;"sdl c:/w";13p
- prompt $e[0;111;"sd c:/e";13p
- prompt $e[0;67;"sdl a:/w";13p
- prompt $e[0;112;"sd a:/e";13p
- prompt $e[0;68;"dir /w ";13p
- prompt $d $t$h$h$h $p$g
-
- I do not know if one can map meta keys using this approach, but it can
- be done in Epsilon. In Epsilon one can define a key binding and then
- make it permanent by saving the state, epsilon.sta. Or one can define
- eel code for epsilon, compile it, and then load it in as needed or
- load it in and make it permanent by saving the state with the eel
- code loaded.
-