Article View: gnu.emacs.help
Article #1947trouble binding some function keys on sun?
From: Andrew Davidson
Date: Mon, 14 Dec 1992 20:50
Date: Mon, 14 Dec 1992 20:50
47 lines
2918 bytes
2918 bytes
hello
for some reason I can bind all the function keys on my sun sparc 2
station. I am running emacs 18.58 on solaris. this used to work fine
on a sparc 1+ running sunos 4.1.2. I can map all the funtion keys from
"F1" to "F10" but for some reason "f11" and F12" can not be mapped?
"F11" maps to and "f12" maps to . how do I mapp these values?
with out messing up the previous-line command bound to C-p.
thanks in advance Andy
here is how I mapped the keys in the past
;; to figure out what the key code is C-q "key"
;; also look at the emacs source file x11term.c.
;; set up some Sun key bindings (for use under X)
(setq window-setup-hook
(function
(lambda ()
(defvar sun-raw-map (make-sparse-keymap)
"*Keymap for ESC-[ encoded keyboard")
(define-key sun-raw-map "208z" 'next-tag) ; R1 Pause
(define-key sun-raw-map "209z" 'find-tag-other-window); r2 PrSc
(define-key sun-raw-map "210z" 'andy-tags-search) ; r3 scroll lck
(define-key sun-raw-map "211z" 'visit-tags-table) ; R4 equal
(define-key sun-raw-map "214z" 'beginning-of-line) ; R7 home 7
(define-key sun-raw-map "216z" 'scroll-down) ; R9 page up 9
(define-key sun-raw-map "218z" 'recenter) ; R11 5
(define-key sun-raw-map "220z" 'end-of-line) ; R13 end 1
(define-key sun-raw-map "222z" 'scroll-up) ; R15 pg dwn 3
(define-key sun-raw-map "224z" 'copyright) ; F1
(define-key sun-raw-map "225z" 'save-some-buffers) ; F2
(define-key sun-raw-map "226z" 'compile) ; F3
(define-key sun-raw-map "227z" 'repeat-complex-command); F4
(define-key sun-raw-map "228z" 'goto-line) ; F5
(define-key sun-raw-map "229z" 'what-line) ; F6
(define-key sun-raw-map "230z" 'top-of-buffer) ; F7
(define-key sun-raw-map "231z" 'bottom-of-buffer) ; F8
(define-key sun-raw-map "232z" 'auto-fill-mode) ; F9
(define-key sun-raw-map "-1z" 'ispell-word) ; F10
(define-key sun-raw-map "192z" 'ispell-region) ; F11
(define-key sun-raw-map "193z" 'ispell-buffer) ; F12
(define-key sun-raw-map "197z" 'xv-select-region) ; L6 Copy
(define-key sun-raw-map "199z" 'xv-yank-selection) ; L8 Past
(define-key esc-map "[" sun-raw-map)
)))
Technical Details
Message-ID:
<lipsruINNgir@exodus.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!elviss.Eng.Sun.COM!andyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!elviss.Eng.Sun.COM!andy From: andy@elviss.Eng.Sun.COM (Andrew Davidson) Newsgroups: gnu.emacs.help Subject: trouble binding some function keys on sun? Date: 14 Dec 1992 20:50:06 GMT Organization: Sun Lines: 47 Message-ID: <lipsruINNgir@exodus.Eng.Sun.COM> NNTP-Posting-Host: elviss