andya@metasoft.UUCP (Andy Adler) (03/09/89)
Is there a program (public domain or commercial) that will permit me to define macro bindings for certain key strokes? In particular, when running a terminal emulator and running emacs on a remote machine I would like the ALT key to behave like a metakey -- e.g. ALT-x maps onto ESC x. Thanks. Andy Adler andya%metasoft@bbn.com Meta Software Corporation, 150 Cambridge Park Drive, Cambridge MA 02140 617-576-6920 -- Andy Adler andya%metasoft@bbn.com Meta Software Corporation, 150 Cambridge Park Drive, Cambridge MA 02140 617-576-6920
scotth@harlie.sgi.com (Scott Henry) (03/09/89)
> Is there a program (public domain or commercial) that will permit me > to define macro bindings for certain key strokes? In particular, when > running a terminal emulator and running emacs on a remote machine I > would like the ALT key to behave like a metakey -- e.g. ALT-x maps > onto ESC x. The terminal program Handshake handles the Alt keys as meta keys (though for some reason the right one flashes when you first press it). Many Emacs's (GNU Emacs in particular) accept the high-bit of a character as the meta-prefix. Just put (set-variable 'meta-flag t) in your ~/.emacs (or whatever your emacs startup file is named). Mg2b can be compiled with the hard-wired option of using the Alt keys as meta keys (it over-rides keyboard mapping of the Alt key to do so, though). Plus, you can learn about keymaps (I haven't taken the time). > Thanks. > > Andy Adler -- --------------------- Scott Henry <scotth@sgi.com> #include <std_disclaimer.h>
papa@pollux.usc.edu (Marco Papa) (03/10/89)
In article <SCOTTH.89Mar9082112@harlie.sgi.com| scotth@harlie.sgi.com (Scott Henry) writes: || Is there a program (public domain or commercial) that will permit me || to define macro bindings for certain key strokes? In particular, when || running a terminal emulator and running emacs on a remote machine I || would like the ALT key to behave like a metakey -- e.g. ALT-x maps || onto ESC x. | |The terminal program Handshake handles the Alt keys as meta keys (though |for some reason the right one flashes when you first press it). Many |Emacs's (GNU Emacs in particular) accept the high-bit of a character as |the meta-prefix. Just put (set-variable 'meta-flag t) in your ~/.emacs |(or whatever your emacs startup file is named). A-Talk III reads the "current" keymap and will ridefine only the keypad and function keys, depending on the selected emulator. As such, when used with 8 bits, no parity, it will send out 8-bit characters. You can build your own keymap with any of the PD keymap editors and then use it as follows: Setmap MetaKeymap run ATalk3 Wait 5 Setmap usa1 The 8-bit chars (invoked with the ALT-keys) can be used as explained above. -- Marco Papa 'Doc' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu "There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland] -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
jwright@atanasoff.cs.iastate.edu (Jim Wright) (03/11/89)
In article <SCOTTH.89Mar9082112@harlie.sgi.com> scotth@harlie.sgi.com (Scott Henry) writes: |> Is there a program (public domain or commercial) that will permit me |> to define macro bindings for certain key strokes? | |The terminal program Handshake handles the Alt keys as meta keys (though |for some reason the right one flashes when you first press it). |> Andy Adler | Scott Henry <scotth@sgi.com> The latest incarnation of Handshake (that I have) generates a comma when you press right-ALT (but not left-ALT). The screen flash is surely your remote connection choking on this unexpected character. Interesting feature... :-) -- Jim Wright jwright@atanasoff.cs.iastate.edu