Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!mic From: mic@ut-emx.UUCP (Mic Kaczmarczik) Newsgroups: comp.sys.next Subject: Keyboard equivalents in the Terminal app Message-ID: <14531@ut-emx.UUCP> Date: 26 Jun 89 18:52:27 GMT Reply-To: mic@emx.utexas.edu (Mic Kaczmarczik) Organization: UT Austin Computation Center, User Services Unix Support Group Lines: 31 Keywords: I use Emacs within the Terminal app to edit text, and I also take advantage of the way Terminal makes the Command key act like the Emacs Meta key. This makes editing go a lot faster -- after a while, typing Command-b (a single keystroke) instead of Escape-b (two keystrokes) saves a lot of time. However, there's just one teensy little problem with this: I habitually use Meta-q (fill-paragraph) to reformat paragraphs, and of course Terminal interprets this as Command-q, and exits the program!!! It would be really nice if Terminal had a way to disable menu key equivalents, so one could use the *entire* keyboard without fear of accidentally exiting the program. Until that happy day arrives, however, I figured out what you have to patch in the Terminal executable to disable the key equivalents. Basically, I found the two 68030 instructions that push the characters 'h' and 'q' on the stack when initializing the menu items, and changed the values to 0. I'm not sure how many people are interested in this rather specialized hack. However, this problem was annoying enough and took enough time to fix that I wanted to let people know that a patch is available. If anyone would like a copy of a program that makes the patch, send me mail and I'll send you one. Mic Kaczmarczik -- Mic Kaczmarczik If you drink, don't drill. UT Austin Computation Center -- Matt Groening mic@emx.utexas.edu MIC@UTAIVC.BITNET