Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!csus.edu!ucdavis!csusac!usenet From: severyn@athena.ecs.csus.edu (Niles Severyn) Newsgroups: comp.sys.next Subject: Re: Arrow keys in csh? Message-ID: <1991May6.203853.26200@csusac.csus.edu> Date: 6 May 91 20:38:53 GMT References: <1991May5.214136.10020@spool.cs.wisc.edu> Sender: usenet@csusac.csus.edu (News account (alt)) Organization: California State University, Sacramento Lines: 28 >Hi, I've been trying to set up my key bindings using the NeXT csh >(with editmode=emacs) so that I can use the arrow keys for the >previous history entry and the next history entry. However, I can >only get it to recognize a single escaped key, whereas the arrows >require a sequence such as: ESC-O A (I tried "\eOA"). In this case it >just maps to ESC-O, ignoring the last character completely. Does >anyoneknow of a way to map the arrow keys in csh on the NeXT? Oris >this one of those minor technici] I did that. I had to set up a binding, and some keyboard macros (no the macros don't save to disk right). Make a file called .bindings, it will load automatically. in .cshrc insert the line set macrofiles = .macros in .bindings put bind-to-key ExecuteNamedMacro '\e[' and for .macros you need to put in (^@ for Control-@, etc.) A^@^@^@^A^P B^@^@^@^A^N C^@^@^@^A^F D^@^@^@^A^B if you create a macro file with ^X-^S, it will save it, but it leaves out that first letter indicating the key.