home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume4
/
gnumacs-blit
/
part01
/
emacs
/
term
/
5620x.el
Wrap
Text File
|
1989-02-03
|
907b
|
25 lines
;; 5620_mouse terminal initialization (for Mux)
;;
;; unbind "\e[" if bound to a function and bind the arrow and clear keys
;; on the numeric keypad
;;
(let ((binding (global-key-binding "\e[")))
(cond
((and (not (null binding))
(not (keymapp binding)))
(global-unset-key "\e["))))
;;
;;
(global-set-key "\e[D" 'backward-char) ; left arrow key
(global-set-key "\e[C" 'forward-char) ; right arrow key
(global-set-key "\e[A" 'previous-line) ; up arrow key
(global-set-key "\e[B" 'next-line) ; down arrow key
(global-set-key "\e[H" 'beginning-of-buffer) ; home arrow key
(global-set-key "\e[F" 'end-of-buffer) ; home down arrow key
(global-set-key "\e[70;1H" 'end-of-buffer) ; home down arrow key
(global-set-key "\e[2J" 'redraw-display) ; clear key
;;
;; load the mouse handling stuff
;;
(load "mega-lilith")