home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!master.cs.rose-hulman.edu!master.cs.rose-hulman.edu!news
- From: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
- Newsgroups: comp.sys.next.sysadmin
- Subject: Re: cursor keys in csh (editmode=emacs)
- Date: 17 Nov 1992 01:25:06 GMT
- Organization: Computer Science Department at Rose-Hulman
- Lines: 40
- Distribution: comp
- Message-ID: <1e9hliINNfl@master.cs.rose-hulman.edu>
- References: <1992Nov10.122831.564@sel.sub.org>
- Reply-To: nelson@nextwork.Rose-Hulman.Edu (Randy J. Nelson)
- NNTP-Posting-Host: randy-next.nextwork.rose-hulman.edu
-
- In article <1992Nov10.122831.564@sel.sub.org> stez@sel.sub.org (Johannes
- Stezenbach) writes:
- >
- > I ve set editmode=emacs in a csh running in Terminal.app (NS3.0)
- > and I want to use the cursor keys for parsing through the history and
- > command line editing.
- >
- > I tried to use bind-to-key PreviousHistEntry ... , but I don t know
- > what what to enter in the key field of the bind-to-key function.
- >
- > Please help !
-
- Subject: C7. How do I get the arrow keys to work in csh?
-
- [This is for people who use a terminal app that does vt100 keyboard
- emulation - pasc]
- First, add these lines to your ".cshrc" (preferably between the if and
- endif):
- set editmode = emacs
- set macrofiles = .macros
- Then create a file called ".bindings" and put in it:
- bind-to-key ExecuteNamedMacro '\e['
- And, next, you need to make a file called ".macros" however, this one
- you need to enter some control characters into, because the csh STILL
- cannot write a macro file (And I'm using 2.1). Into this file put:
- A^@^@^@^A^P
- B^@^@^@^A^N
- C^@^@^@^A^F
- D^@^@^@^A^B
- where ^@ means Control-@ and ^A means Control-A, etc. Also, don't put
- in the leading spaces.
- This will set up the left and right arrows to move back and forth on
- the line, and the up and down arrows will cycle through your history.
-
- --
- -Randy Nelson
- Workstation Support Manager
- Rose-Hulman Institute of Technology
- Email: Randy.Nelson@Rose-Hulman.Edu
-
-