Wolfgang Zweimueller (wzwei@frosch) wrote:
: What happened to the functon keys and cursor keys in Linux between 0.97 and
: and 0.98 ????
:
: So my question is: Is there anybody out there who had the same problems
: and fixed it or has an idea what to do. Or is there a new 'etc/termcap'
: for 0.98 ?
The solution is easiy. You have to define your special keys in default.el
and everything is running well.
My default.el looks like this...
===========================================================================
(if (= (length load-path) 1)
(setq load-path (cons "/usr/emacs/lisp/local" load-path)))
;; handle any linux console if user hasn't done so already
(or term-setup-hook
(setq term-setup-hook
(function (lambda ()
(if (string-match "^console$\\|^con[0-9]+x[0-9]+$\\|^xterm$"
(getenv "TERM"))
(linux-setup-console))
(and (fboundp 'enable-arrow-keys)
(enable-arrow-keys))))))
(defun linux-setup-console ()
(setq meta-flag t)
(load "term/vt100.el" t t t)
(setup-terminal-keymap CSI-map
'(("A" . ?u) ; Up Arrow
("B" . ?d) ; Down Arrow
("C" . ?r) ; Right Arrow
("D" . ?l) ; Left Arrow
("2~" . ?I) ; Insert
("3~" . ?D) ; Delete
("H" . ?h) ; Home
("Y" . ?H) ; End
("5~" . ?P) ; Page Up
("6~" . ?N) ; Page Down
("G" . ?5) ; 5 on Numeric Keypad
("[A" . ?\C-a) ; F1
("[B" . ?\C-b) ; F2
("[C" . ?\C-c) ; F3
("[D" . ?\C-d) ; F4
("[E" . ?\C-e) ; F5
("[F" . ?\C-f) ; F6
("[G" . ?\C-g) ; F7
("[H" . ?\C-h) ; F8
("[I" . ?\C-i) ; F9
("[J" . ?\C-j) ; F10
("[K" . ?\C-k) ; F11
("[L" . ?\C-l))) ; F12
(setup-terminal-keymap SS3-map
'(("A" . ?u) ; up arrow
("B" . ?d) ; down-arrow
("C" . ?r) ; right-arrow
("D" . ?l) ; left-arrow
("2~" . ?I) ; Insert
("3~" . ?D) ; Delete
("H" . ?h) ; Home
("Y" . ?H) ; End
("5~" . ?P) ; Page Up
("6~" . ?N) ; Page Down
("M" . ?e) ; Enter
("P" . ?\C-a) ; PF1
("Q" . ?\C-b) ; PF2
("R" . ?\C-c) ; PF3
("S" . ?\C-d) ; PF4
("l" . ?,) ; ,
("m" . ?-) ; -
("n" . ?.) ; .
("p" . ?0) ; 0
("q" . ?1) ; 1
("r" . ?2) ; 2
("s" . ?3) ; 3
("t" . ?4) ; 4
("u" . ?5) ; 5
("v" . ?6) ; 6
("w" . ?7) ; 7
("x" . ?8) ; 8
("y" . ?9))) ; 9
(define-key function-keymap "h" 'beginning-of-buffer)
(define-key function-keymap "H" 'end-of-buffer)
(define-key function-keymap "I" 'overwrite-mode))
===============================================================================
:
: Many thanks in advance - Wolfgang.
:
I hope this helps...
--
Snail: Klaus Guhr, Marktstrasse 33, 5300 Bonn 3, Germany
Phone: ++49 +228 48 53 60 Data: ++49 +228 43 24 33
E-Mail: kg@gnusys.GUN.de| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Bart Van Assche | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
