home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!ncar!sunny!southern
- From: southern@sunny.NoSubdomain.NoDomain (Lawrence Buja)
- Subject: Re: Code for sun keyboard -- how can i find out?
- Message-ID: <1992Sep1.163456.27939@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Reply-To: southern@ncar.ucar.edu
- Organization: National Center for Atmospheric Research
- References: <1992Sep1.160714.7075@cas.org>
- Distribution: usa
- Date: Tue, 1 Sep 1992 16:34:56 GMT
- Lines: 27
-
- In article <1992Sep1.160714.7075@cas.org>, zfs60@cas.org () writes:
- >i know the following because that was what i got a long time ago, but
- >i wonder if there is anyway to find out the code for an arbitrary key,
- >such as insert, and do-nothing key among arrow keys. thanks.
- >
- >(global-set-key "\e[215z" 'previous-line)
- > --------
- > this is the code for upward arrow
- >
-
- (defun see-chars ()
- "Displays characters typed, terminated by a 3-second timeout. (tools.el)"
- (interactive)
- (let ((chars "")
- (inhibit-quit t))
- (message "Enter characters, terminated by 3-second timeout.")
- (while (not (sit-for 3))
- (setq chars (concat chars (list (read-char)))
- quit-flag nil)) ; quit-flag maybe set by C-g
- (describe-key chars)
- (message "Characters entered: %s" (key-description chars))))
-
-
- /\ Lawrence Buja Climate and Global Dynamics Division
- \_][ southern@ncar.ucar.edu National Center for Atmospheric Research
- \_________________________Boulder,_Colorado___80307-3000__________
-
-