Mercurial > hg > xemacs-beta
annotate lisp/term/xterm.el @ 5588:2dbefd79b3d3
Prevent SIGPIPEs in deactivate_process().
* process.c (deactivate_process):
Use Lstream_close_noflush on output pipe instead of Lstream_close.
* lstream.c (Lstream_close_noflush):
New. Factored out of Lstream_close.
(Lstream_close): Use Lstream_close_noflush.
* lstream.h (Lstream_close_noflush): Declare it.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sat, 29 Oct 2011 01:10:32 +0900 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
428 | 1 ;;; xterm.el --- define function key sequences for xterm |
2 | |
3 ;; Author: FSF | |
4 ;; Keywords: terminals | |
5 | |
6 ;; Copyright (C) 1995 Free Software Foundation, Inc. | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
10 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
11 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
12 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
13 ;; option) any later version. |
428 | 14 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
15 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
16 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
17 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
18 ;; for more details. |
428 | 19 |
20 ;; You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
428
diff
changeset
|
21 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
428 | 22 |
23 ;;;; Code: | |
24 | |
25 ;; Termcap or terminfo should set these next four? | |
26 (define-key function-key-map "\e[A" [up]) | |
27 (define-key function-key-map "\e[B" [down]) | |
28 (define-key function-key-map "\e[C" [right]) | |
29 (define-key function-key-map "\e[D" [left]) | |
30 | |
31 (define-key function-key-map "\eO\000" [home]) | |
32 (define-key function-key-map "\eOe" [end]) | |
33 (define-key function-key-map "\e[1~" [find]) | |
34 (define-key function-key-map "\e[2~" [insert]) | |
35 (define-key function-key-map "\e[3~" [delete]) | |
36 (define-key function-key-map "\e[4~" [select]) | |
37 (define-key function-key-map "\e[5~" [prior]) | |
38 (define-key function-key-map "\e[6~" [next]) | |
39 (define-key function-key-map "\e[11~" [f1]) | |
40 (define-key function-key-map "\e[12~" [f2]) | |
41 (define-key function-key-map "\e[13~" [f3]) | |
42 (define-key function-key-map "\e[14~" [f4]) | |
43 (define-key function-key-map "\e[15~" [f5]) | |
44 (define-key function-key-map "\e[17~" [f6]) | |
45 (define-key function-key-map "\e[18~" [f7]) | |
46 (define-key function-key-map "\e[19~" [f8]) | |
47 (define-key function-key-map "\e[20~" [f9]) | |
48 (define-key function-key-map "\e[21~" [f10]) | |
49 (define-key function-key-map "\e[23~" [f11]) | |
50 (define-key function-key-map "\e[24~" [f12]) | |
51 (define-key function-key-map "\e[25~" [f13]) | |
52 (define-key function-key-map "\e[26~" [f14]) | |
53 (define-key function-key-map "\e[28~" [help]) | |
54 (define-key function-key-map "\e[29~" [menu]) | |
55 ; FSF's xterm.el defines this like this: | |
56 ; (I don't know which one is more correct) | |
57 ;(define-key function-key-map "\e[29~" [print]) | |
58 (define-key function-key-map "\e[31~" [f17]) | |
59 (define-key function-key-map "\e[32~" [f18]) | |
60 (define-key function-key-map "\e[33~" [f19]) | |
61 (define-key function-key-map "\e[34~" [f20]) | |
62 | |
63 ;; Termcap or terminfo should set these next four. | |
64 (define-key function-key-map "\eOA" [up]) | |
65 (define-key function-key-map "\eOB" [down]) | |
66 (define-key function-key-map "\eOC" [right]) | |
67 (define-key function-key-map "\eOD" [left]) | |
68 | |
69 (define-key function-key-map "\eOp" [kp-0]) | |
70 (define-key function-key-map "\eOq" [kp-1]) | |
71 (define-key function-key-map "\eOr" [kp-2]) | |
72 (define-key function-key-map "\eOs" [kp-3]) | |
73 (define-key function-key-map "\eOt" [kp-4]) | |
74 (define-key function-key-map "\eOu" [kp-5]) | |
75 (define-key function-key-map "\eOv" [kp-6]) | |
76 (define-key function-key-map "\eOw" [kp-7]) | |
77 (define-key function-key-map "\eOx" [kp-8]) | |
78 (define-key function-key-map "\eOy" [kp-9]) | |
79 | |
80 (define-key function-key-map "\eOk" [kp-add]) | |
81 (define-key function-key-map "\eOm" [kp-subtract]) | |
82 (define-key function-key-map "\eOM" [kp-enter]) | |
83 (define-key function-key-map "\eOj" [kp-multiply]) | |
84 (define-key function-key-map "\eOo" [kp-divide]) | |
85 (define-key function-key-map "\eOn" [kp-decimal]) | |
86 | |
87 ;; If you use the X resource -- XTerm*sunFunctionKeys: on -- you may | |
88 ;; need these. | |
89 (define-key function-key-map "\e[224z" [f1]) | |
90 (define-key function-key-map "\e[225z" [f2]) | |
91 (define-key function-key-map "\e[226z" [f3]) | |
92 (define-key function-key-map "\e[227z" [f4]) | |
93 (define-key function-key-map "\e[228z" [f5]) | |
94 (define-key function-key-map "\e[229z" [f6]) | |
95 (define-key function-key-map "\e[230z" [f7]) | |
96 (define-key function-key-map "\e[231z" [f8]) | |
97 (define-key function-key-map "\e[232z" [f9]) | |
98 (define-key function-key-map "\e[233z" [f10]) | |
99 (define-key function-key-map "\e[234z" [f11]) | |
100 (define-key function-key-map "\e[235z" [f12]) | |
101 (define-key function-key-map "\e[194z" [(shift f1)]) | |
102 (define-key function-key-map "\e[195z" [(shift f2)]) | |
103 (define-key function-key-map "\e[196z" [(shift f3)]) | |
104 (define-key function-key-map "\e[197z" [(shift f4)]) | |
105 (define-key function-key-map "\e[198z" [(shift f5)]) | |
106 (define-key function-key-map "\e[199z" [(shift f6)]) | |
107 (define-key function-key-map "\e[200z" [(shift f7)]) | |
108 (define-key function-key-map "\e[201z" [(shift f8)]) | |
109 (define-key function-key-map "\e[208z" [(shift f9)]) | |
110 (define-key function-key-map "\e[209z" [(shift f10)]) | |
111 (define-key function-key-map "\e[210z" [(shift f11)]) | |
112 (define-key function-key-map "\e[211z" [(shift f12)]) | |
113 (define-key function-key-map "\e[2z" [insert]) | |
114 (define-key function-key-map "\e[5z" [prior]) | |
115 (define-key function-key-map "\e[6z" [next]) | |
116 | |
117 ;;; xterm.el ends here |