yee@osf.org (Michael K. Yee) (06/14/90)
[REPOSTING: accidentally posted to comp.sys.mac.apps] I have just tired MacLayers 1.0 and it's seems like a pretty nice package, but there is one problem. I can't seem to get the arrow keys to work (i.e. send correct VT100 escape sequences for emacs). Has anybody else had this problem? Many thanks, =Mike -- = Michael K. Yee =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = OPEN Software Foundation -- 11 Cambridge Center -- Cambridge, MA 02142 = Phone: 617-621-8831 Email: yee@osf.org, uunet!osf.org!yee = "I can't give you brains, but I can give you a diploma." -- The Wizard of OZ
resnick@lees.cogsci.uiuc.edu (Pete Resnick) (06/14/90)
Mike, I don't know about MacLayers, but I can almost guarentee that this is a problem with emacs. Emacs only sets up the cursor keys for numeric mode (ESC-OA, ESC-OB, etc.) but leaves it unset for application cursor key (CSI) mode (ESC-[A, ESC-[B, etc.) since this breaks the emacs command ESC-[. MacLayers probably uses the CSI mode. To get this to work in emacs, you must use the command M-x enable-arrow-keys. To do this in your .emacs is even more fun since emacs loads your .emacs before the terminal file. My .emacs looks like this: (if (string-equal (substring (getenv "TERM") 0 2) "vt") (load (concat term-file-prefix (getenv "TERM")))) (if (string-equal (substring (getenv "TERM") 0 2) "vt") (enable-arrow-keys)) This loads the terminal file and then enables the arrow keys. (I'm sure there is a way in lisp to have do two things in the same if statement, but I don't know lisp and the obvious way didn't work.) This should solve your problem. pr -- -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@kant.cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD
newton@cs.utexas.edu (Peter Newton) (06/14/90)
I have just tired MacLayers 1.0 and it's seems like a pretty nice package, but there is one problem. I can't seem to get the arrow keys to work (i.e. send correct VT100 escape sequences for emacs). Has anybody else had this problem? I think that Maclayers sends the wrongs stuff for arrow keys-- at least on my Mac+ keyboard. For example left arrow sends ^\. It is on the bug list, but I have no idea when the author will get to it. --- Peter Newton Computer Sciences, TAY 2.124 (512) 471-9735 University of Texas at Austin newton@cs.utexas.edu Austin, TX 78712-1188 ...{uunet|gatech|ames}!cs.utexas.edu!newton