Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!lees.cogsci.uiuc.edu!resnick From: resnick@lees.cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.comm Subject: Re: MacLayers and cursor keys Message-ID: <1990Jun13.181819.27433@ux1.cso.uiuc.edu> Date: 13 Jun 90 18:18:19 GMT References: Sender: usenet@ux1.cso.uiuc.edu (News) Distribution: comp Organization: University of Illinois at Urbana Lines: 32 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