Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!usenet.ins.cwru.edu!eagle!data.nas.nasa.gov!amelia!browning From: browning@nas.nasa.gov (David S. Browning) Newsgroups: comp.sys.sgi Subject: Modification of keyboard code sequences Keywords: keyboard, escape sequence Message-ID: <1991Apr12.043331.29665@nas.nasa.gov> Date: 12 Apr 91 04:33:31 GMT Sender: news@nas.nasa.gov Reply-To: browning@amelia.nas.nasa.gov (David S. Browning) Organization: NAS Program, NASA Ames Research Center, Moffett Field, CA Lines: 36 I want to be able to modify the code sequences generated by the IRIS-4D series keyboard. I have a 4D/60 running IRIX 3.3.1, using the 4Sight NeWS server (i.e. not X windows). My manual is a little old, Version 3.0. In the 4Sight Programmer's Guide, Section 1: Using the GL/DGL Interfaces, Appendix A.2, Table A-3 lists the code sequences generated for all the keys when combined with shift, ctrl and alt. I want to disable the ANSI CSI ("ESC [") escape sequences. I've used Mark Segal's "altIntoMeta" routine to make the alt key behave as a meta key for GNU Emacs, and Eric Pettersen's "replacekeys" routine to swap the Backspace and Delete keys. If, instead of typing alt-'Delete' (emacs "backward-kill-word") I mistakenly type alt-'=' (which is nearby), emacs receives the sequence "ESC [ 0 7 0 q", which moves the cursor and inserts unwanted characters. Depending on the type of file being edited, the cursor can move far away, and it's easy to lose track of where you were before. This is very annoying. It isn't important to know emacs to help me with this, it is only an example of why I need help. I want to disable those escape sequences or reprogram them into something benign. Has anybody done this, or can anyone tell me how? Or where in TFM to R? I'll post the solution if I get one and there's interest. Thanks, David. |============================================================================| | Internet: browning@nas.nasa.gov Phone: (415) 604-4321 | | UUCP: {hplabs, mailrus, ucbvax, etc.}!ames!amelia!browning | |----------------------------------------------------------------------------| |"the nice thing about true hopelessness is that you don't have to try again"| | -- jules shear | |============================================================================|