home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!ukma!lexmark!aix370!casey
- From: casey@lexmark.com (Patrick Casey)
- Newsgroups: gnu.emacs.help
- Subject: Re: Mapping Sun cursor keys
- Message-ID: <CASEY.92Nov6101821@anxiety.lexmark.lex.usa.na>
- Date: 6 Nov 92 15:18:21 GMT
- References: <1992Nov3.224930.2644@ncube.com>
- Sender: usenet@lexmark.com (News Dude)
- Reply-To: pacasey@lexmark.com
- Distribution: usa
- Organization: Lexmark International, Lexington KY
- Lines: 29
- In-Reply-To: thummel@ncube.com's message of Tue, 3 Nov 1992 22:49:30 GMT
- X-Disclaimer: These views are the poster's and not necessarily those of Lexmark
- Nntp-Posting-Host: anxiety.prtdev.lexmark.com
-
- In article <1992Nov3.224930.2644@ncube.com> thummel@ncube.com (Tom Hummel) writes:
-
- > I'm trying to map the Sun keypad cursor keys to the cursor control
- > functions in emacs. The Sun keypad appears to be a three character output.
- > For example the Right arrow key produces ESC,[,C . global-set-key will
- > only let me place 2 characters in the character string, if I place
- > 3 in there I get an init error. The syntax I tried was:
- > (global-set-key "\033\133\103" 'forward-char)
-
- I put a new term file in wherever_emacs_is/lisp/term called sun-cmd.el
- (since $TERM="sun-cmd" when I start emacs), that does stuff like this:
-
- (define-key esc-map "[" (make-sparse-keymap))
- (global-unset-key "[")
-
- (global-set-key "[A" 'previous-line) ; up arrow
- (global-set-key "[C" 'forward-char) ; right arrow
-
- and so on.
-
- Are you calling global-unset-key? If you aren't, that may be the
- problem. Hope this helps.
-
- Patrick
-
-
-
- --
- Patrick A. Casey pacasey@lexmark.com Hi, I.S. big brothers!
-