home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!traffic!kevin
- From: kevin@traffic.den.mmc.com (Kevin Rodgers)
- Subject: Re: Help with key mapping.
- Message-ID: <1992Jul29.164330.16475@den.mmc.com>
- Sender: news@den.mmc.com (News)
- Nntp-Posting-Host: traffic.den.mmc.com
- Organization: Martin Marietta Western Internal Systems, Technical Operations
- References: <1992Jul28.181836.26845@lsil.com>
- Date: Wed, 29 Jul 1992 16:43:30 GMT
- Lines: 39
-
- In article <1992Jul28.181836.26845@lsil.com> mintz@lsil.com writes:
- >Hi,
- >
- >I am using gnuemacs 18.57 on a sparc 2 running openwindows 3.0 and for some
- >reason my arrow keys (R8, R10, R12 and R14) send the \c-p \c-h \c-f and \c-n
- >codes to the editor. This is not so for just a plain xterm and if I run
- >my environment under a regular sun 4/110 the keyboard maps to the \c-x*...
- >sequences.
- >
- >Can anyone tell my what I have to add/change/delete so that I could, for
- >example, distinguish between a \c-n generated by hitting the CTL and the N
- >and the down arrow key.
-
- There's nothing you can do with elisp, since this is the result of a
- hack in internal_socket_read() in src/x11term.c:
-
- switch (keysym) {
- case XK_Left:
- strcpy(mapping_buf,"\002");
- nbytes = 1;
- break;
- case XK_Right:
- strcpy(mapping_buf,"\006");
- nbytes = 1;
- break;
- case XK_Up:
- strcpy(mapping_buf,"\020");
- nbytes = 1;
- break;
- case XK_Down:
- strcpy(mapping_buf,"\016");
- nbytes = 1;
- break;
- }
- --
- Kevin Rodgers kevin@traffic.den.mmc.com
- Martin Marietta MS A16401 (303) 790-3971
- 116 Inverness Dr. East
- Englewood CO 80112 USA GO BUFFS!
-