Mercurial > emacs
annotate lisp/term/xterm.el @ 17692:426dde653028 gnumach-release-1-1 gnumach-release-1-1-1 libc-970508 libc-970509 libc-970510 libc-970511 libc-970512 libc-970513 libc-970514 libc-970515 libc-970516 libc-970517 libc-970518 libc-970519 libc-970520 libc-970521 libc-970522 libc-970523 libc-970524 libc-970525 libc-970526 libc-970527 libc-970528 libc-970529 libc-970530 libc-970531 libc-970601 libc-970602 libc-970603 libc-970604 libc-970605
Recognize either / or - as a machine/suptype separator from uname -m
to cope with older systems that have the older uname.
author | Thomas Bushnell, BSG <thomas@gnu.org> |
---|---|
date | Wed, 07 May 1997 19:19:04 +0000 |
parents | 23cc3f54e536 |
children | 853c3674f20a |
rev | line source |
---|---|
12159 | 1 ;;; xterm.el --- define function key sequences for xterm |
2 | |
14170
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
3 ;; Copyright (C) 1995 Free Software Foundation, Inc. |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
4 |
12159 | 5 ;; Author: FSF |
6 ;; Keywords: terminals | |
7 | |
14170
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
8 ;; This file is part of GNU Emacs. |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
9 |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
11 ;; it under the terms of the GNU General Public License as published by |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
13 ;; any later version. |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
14 |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
15 ;; GNU Emacs is distributed in the hope that it will be useful, |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
18 ;; GNU General Public License for more details. |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
19 |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
20 ;; You should have received a copy of the GNU General Public License |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
23cc3f54e536
Update FSF's office address.
Erik Naggum <erik@naggum.no>
parents:
12159
diff
changeset
|
23 ;; Boston, MA 02111-1307, USA. |
12159 | 24 |
25 ;;;; Code: | |
26 | |
27 (define-key function-key-map "\e[A" [up]) | |
28 (define-key function-key-map "\e[B" [down]) | |
29 (define-key function-key-map "\e[C" [right]) | |
30 (define-key function-key-map "\e[D" [left]) | |
31 (define-key function-key-map "\e[2~" [insert]) | |
32 (define-key function-key-map "\e[4~" [select]) | |
33 (define-key function-key-map "\e[5~" [prior]) | |
34 (define-key function-key-map "\e[6~" [next]) | |
35 (define-key function-key-map "\e[11~" [f1]) | |
36 (define-key function-key-map "\e[12~" [f2]) | |
37 (define-key function-key-map "\e[13~" [f3]) | |
38 (define-key function-key-map "\e[14~" [f4]) | |
39 (define-key function-key-map "\e[15~" [f5]) | |
40 (define-key function-key-map "\e[17~" [f6]) | |
41 (define-key function-key-map "\e[18~" [f7]) | |
42 (define-key function-key-map "\e[19~" [f8]) | |
43 (define-key function-key-map "\e[20~" [f9]) | |
44 (define-key function-key-map "\e[21~" [f10]) | |
45 (define-key function-key-map "\e[23~" [f11]) | |
46 (define-key function-key-map "\e[24~" [f12]) | |
47 (define-key function-key-map "\e[29~" [print]) |