diff options
| author | Stefan Monnier | 2007-10-24 14:54:03 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-24 14:54:03 +0000 |
| commit | d1886efb125ef22ad2c88c6fa60b722d19884243 (patch) | |
| tree | fba63b9bd8a1a507d494daab63d7d67347567f7a /lisp | |
| parent | 392225eeb617575c4bc435e342ceb7c637519813 (diff) | |
| download | emacs-d1886efb125ef22ad2c88c6fa60b722d19884243.tar.gz emacs-d1886efb125ef22ad2c88c6fa60b722d19884243.zip | |
(iris-function-map): Move initialization into declaration.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/term/iris-ansi.el | 377 |
2 files changed, 198 insertions, 199 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 52a36042f85..7b32f670f91 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-10-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * term/iris-ansi.el (iris-function-map): Move init into declaration. | ||
| 4 | |||
| 1 | 2007-10-24 Juanma Barranquero <lekktu@gmail.com> | 5 | 2007-10-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * buff-menu.el (Buffer-menu-sort-column): Doc fix. | 7 | * buff-menu.el (Buffer-menu-sort-column): Doc fix. |
| @@ -6,19 +10,19 @@ | |||
| 6 | 10 | ||
| 7 | 2007-10-24 Carsten Dominik <dominik@science.uva.nl> | 11 | 2007-10-24 Carsten Dominik <dominik@science.uva.nl> |
| 8 | 12 | ||
| 9 | * textmodes/org.el (org-version): Changed to 5.13e. | 13 | * textmodes/org.el (org-version): Change to 5.13e. |
| 10 | (org-agenda-file-regexp): Fixed typo in docstring. | 14 | (org-agenda-file-regexp): Fix typo in docstring. |
| 11 | (org-add-planning-info): Fixed bug in parenthesis settings. | 15 | (org-add-planning-info): Fix bug in parenthesis settings. |
| 12 | (org-scan-tags): Catch the case of indirect buffers with no filename. | 16 | (org-scan-tags): Catch the case of indirect buffers with no filename. |
| 13 | (org-fast-tag-selection, org-export-as-ascii, org-export-as-html): | 17 | (org-fast-tag-selection, org-export-as-ascii, org-export-as-html): |
| 14 | Re-installed switch to mapc, had been removed by accident. | 18 | Re-install switch to mapc, had been removed by accident. |
| 15 | (org-columns-map): New binding `C-c C-o'. | 19 | (org-columns-map): New binding `C-c C-o'. |
| 16 | (org-columns-menu): Changed menu text and added new entry. | 20 | (org-columns-menu): Change menu text and added new entry. |
| 17 | (org-columns-eval): Documented the use of `next-line'. | 21 | (org-columns-eval): Document the use of `next-line'. |
| 18 | (org-columns-open-link): New function. | 22 | (org-columns-open-link): New function. |
| 19 | (org-columns-follow-link): Function removed. | 23 | (org-columns-follow-link): Remove function. |
| 20 | (org-open-link-from-string): New function. | 24 | (org-open-link-from-string): New function. |
| 21 | (org-read-date-get-relative): Fixed typo in docstring. | 25 | (org-read-date-get-relative): Fix typo in docstring. |
| 22 | (org-read-date-get-relative): Leading +/- is not optional. | 26 | (org-read-date-get-relative): Leading +/- is not optional. |
| 23 | (org-agenda-get-restriction-and-command): Always resize window on | 27 | (org-agenda-get-restriction-and-command): Always resize window on |
| 24 | first loop cycle. | 28 | first loop cycle. |
diff --git a/lisp/term/iris-ansi.el b/lisp/term/iris-ansi.el index d4147c39d5f..d7e12095022 100644 --- a/lisp/term/iris-ansi.el +++ b/lisp/term/iris-ansi.el | |||
| @@ -26,305 +26,300 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (defvar iris-function-map (make-sparse-keymap) | 29 | (defvar iris-function-map |
| 30 | "Function key definitions for SGI xwsh and winterm apps.") | 30 | (let ((map (make-sparse-keymap))) |
| 31 | |||
| 32 | (define-key iris-function-map "\e[120q" [S-escape]) | ||
| 33 | (define-key iris-function-map "\e[121q" [C-escape]) | ||
| 34 | 31 | ||
| 35 | (define-key iris-function-map "\e[001q" [f1]) | 32 | (define-key map "\e[120q" [S-escape]) |
| 36 | (define-key iris-function-map "\e[013q" [S-f1]) | 33 | (define-key map "\e[121q" [C-escape]) |
| 37 | (define-key iris-function-map "\e[025q" [C-f1]) | ||
| 38 | 34 | ||
| 35 | (define-key map "\e[001q" [f1]) | ||
| 36 | (define-key map "\e[013q" [S-f1]) | ||
| 37 | (define-key map "\e[025q" [C-f1]) | ||
| 39 | 38 | ||
| 40 | (define-key iris-function-map "\e[002q" [f2]) | ||
| 41 | (define-key iris-function-map "\e[014q" [S-f2]) | ||
| 42 | (define-key iris-function-map "\e[026q" [C-f2]) | ||
| 43 | (define-key iris-function-map "\e[038q" [M-f2]) | ||
| 44 | 39 | ||
| 45 | (define-key iris-function-map "\e[003q" [f3]) | 40 | (define-key map "\e[002q" [f2]) |
| 46 | (define-key iris-function-map "\e[015q" [S-f3]) | 41 | (define-key map "\e[014q" [S-f2]) |
| 47 | (define-key iris-function-map "\e[027q" [C-f3]) | 42 | (define-key map "\e[026q" [C-f2]) |
| 43 | (define-key map "\e[038q" [M-f2]) | ||
| 48 | 44 | ||
| 45 | (define-key map "\e[003q" [f3]) | ||
| 46 | (define-key map "\e[015q" [S-f3]) | ||
| 47 | (define-key map "\e[027q" [C-f3]) | ||
| 49 | 48 | ||
| 50 | (define-key iris-function-map "\e[004q" [f4]) | ||
| 51 | (define-key iris-function-map "\e[016q" [S-f4]) | ||
| 52 | (define-key iris-function-map "\e[028q" [C-f4]) | ||
| 53 | 49 | ||
| 50 | (define-key map "\e[004q" [f4]) | ||
| 51 | (define-key map "\e[016q" [S-f4]) | ||
| 52 | (define-key map "\e[028q" [C-f4]) | ||
| 54 | 53 | ||
| 55 | (define-key iris-function-map "\e[005q" [f5]) | ||
| 56 | (define-key iris-function-map "\e[017q" [S-f5]) | ||
| 57 | (define-key iris-function-map "\e[029q" [C-f5]) | ||
| 58 | 54 | ||
| 55 | (define-key map "\e[005q" [f5]) | ||
| 56 | (define-key map "\e[017q" [S-f5]) | ||
| 57 | (define-key map "\e[029q" [C-f5]) | ||
| 59 | 58 | ||
| 60 | (define-key iris-function-map "\e[006q" [f6]) | ||
| 61 | (define-key iris-function-map "\e[018q" [S-f6]) | ||
| 62 | (define-key iris-function-map "\e[030q" [C-f6]) | ||
| 63 | 59 | ||
| 60 | (define-key map "\e[006q" [f6]) | ||
| 61 | (define-key map "\e[018q" [S-f6]) | ||
| 62 | (define-key map "\e[030q" [C-f6]) | ||
| 64 | 63 | ||
| 65 | (define-key iris-function-map "\e[007q" [f7]) | ||
| 66 | (define-key iris-function-map "\e[019q" [S-f7]) | ||
| 67 | (define-key iris-function-map "\e[031q" [C-f7]) | ||
| 68 | 64 | ||
| 65 | (define-key map "\e[007q" [f7]) | ||
| 66 | (define-key map "\e[019q" [S-f7]) | ||
| 67 | (define-key map "\e[031q" [C-f7]) | ||
| 69 | 68 | ||
| 70 | (define-key iris-function-map "\e[008q" [f8]) | ||
| 71 | (define-key iris-function-map "\e[020q" [S-f8]) | ||
| 72 | (define-key iris-function-map "\e[032q" [C-f8]) | ||
| 73 | 69 | ||
| 70 | (define-key map "\e[008q" [f8]) | ||
| 71 | (define-key map "\e[020q" [S-f8]) | ||
| 72 | (define-key map "\e[032q" [C-f8]) | ||
| 74 | 73 | ||
| 75 | (define-key iris-function-map "\e[009q" [f9]) | ||
| 76 | (define-key iris-function-map "\e[021q" [S-f9]) | ||
| 77 | (define-key iris-function-map "\e[033q" [C-f9]) | ||
| 78 | 74 | ||
| 75 | (define-key map "\e[009q" [f9]) | ||
| 76 | (define-key map "\e[021q" [S-f9]) | ||
| 77 | (define-key map "\e[033q" [C-f9]) | ||
| 79 | 78 | ||
| 80 | (define-key iris-function-map "\e[010q" [f10]) | ||
| 81 | (define-key iris-function-map "\e[022q" [S-f10]) | ||
| 82 | (define-key iris-function-map "\e[034q" [C-f10]) | ||
| 83 | 79 | ||
| 80 | (define-key map "\e[010q" [f10]) | ||
| 81 | (define-key map "\e[022q" [S-f10]) | ||
| 82 | (define-key map "\e[034q" [C-f10]) | ||
| 84 | 83 | ||
| 85 | (define-key iris-function-map "\e[011q" [f11]) | ||
| 86 | (define-key iris-function-map "\e[023q" [S-f11]) | ||
| 87 | (define-key iris-function-map "\e[035q" [C-f11]) | ||
| 88 | (define-key iris-function-map "\e[047q" [M-f11]) | ||
| 89 | 84 | ||
| 90 | (define-key iris-function-map "\e[012q" [f12]) | 85 | (define-key map "\e[011q" [f11]) |
| 91 | (define-key iris-function-map "\e[024q" [S-f12]) | 86 | (define-key map "\e[023q" [S-f11]) |
| 92 | (define-key iris-function-map "\e[036q" [C-f12]) | 87 | (define-key map "\e[035q" [C-f11]) |
| 93 | (define-key iris-function-map "\e[048q" [M-f12]) | 88 | (define-key map "\e[047q" [M-f11]) |
| 94 | 89 | ||
| 90 | (define-key map "\e[012q" [f12]) | ||
| 91 | (define-key map "\e[024q" [S-f12]) | ||
| 92 | (define-key map "\e[036q" [C-f12]) | ||
| 93 | (define-key map "\e[048q" [M-f12]) | ||
| 95 | 94 | ||
| 96 | (define-key iris-function-map "\e[057q" [?\C-`]) | ||
| 97 | (define-key iris-function-map "\e[115q" [?\M-`]) | ||
| 98 | 95 | ||
| 99 | (define-key iris-function-map "\e[049q" [?\C-1]) | 96 | (define-key map "\e[057q" [?\C-`]) |
| 100 | (define-key iris-function-map "\e[058q" [?\M-1]) | 97 | (define-key map "\e[115q" [?\M-`]) |
| 101 | 98 | ||
| 99 | (define-key map "\e[049q" [?\C-1]) | ||
| 100 | (define-key map "\e[058q" [?\M-1]) | ||
| 102 | 101 | ||
| 103 | (define-key iris-function-map "\e[059q" [?\M-2]) | ||
| 104 | 102 | ||
| 105 | (define-key iris-function-map "\e[050q" [?\C-3]) | 103 | (define-key map "\e[059q" [?\M-2]) |
| 106 | (define-key iris-function-map "\e[060q" [?\M-3]) | ||
| 107 | 104 | ||
| 108 | (define-key iris-function-map "\e[051q" [?\C-4]) | 105 | (define-key map "\e[050q" [?\C-3]) |
| 109 | (define-key iris-function-map "\e[061q" [?\M-4]) | 106 | (define-key map "\e[060q" [?\M-3]) |
| 110 | 107 | ||
| 111 | (define-key iris-function-map "\e[052q" [?\C-5]) | 108 | (define-key map "\e[051q" [?\C-4]) |
| 112 | (define-key iris-function-map "\e[062q" [?\M-5]) | 109 | (define-key map "\e[061q" [?\M-4]) |
| 113 | 110 | ||
| 111 | (define-key map "\e[052q" [?\C-5]) | ||
| 112 | (define-key map "\e[062q" [?\M-5]) | ||
| 114 | 113 | ||
| 115 | (define-key iris-function-map "\e[063q" [?\M-6]) | ||
| 116 | 114 | ||
| 117 | (define-key iris-function-map "\e[053q" [?\C-7]) | 115 | (define-key map "\e[063q" [?\M-6]) |
| 118 | (define-key iris-function-map "\e[064q" [?\M-7]) | ||
| 119 | 116 | ||
| 120 | (define-key iris-function-map "\e[054q" [?\C-8]) | 117 | (define-key map "\e[053q" [?\C-7]) |
| 121 | (define-key iris-function-map "\e[065q" [?\M-8]) | 118 | (define-key map "\e[064q" [?\M-7]) |
| 122 | 119 | ||
| 123 | (define-key iris-function-map "\e[055q" [?\C-9]) | 120 | (define-key map "\e[054q" [?\C-8]) |
| 124 | (define-key iris-function-map "\e[066q" [?\M-9]) | 121 | (define-key map "\e[065q" [?\M-8]) |
| 125 | 122 | ||
| 126 | (define-key iris-function-map "\e[056q" [?\C-0]) | 123 | (define-key map "\e[055q" [?\C-9]) |
| 127 | (define-key iris-function-map "\e[067q" [?\M-0]) | 124 | (define-key map "\e[066q" [?\M-9]) |
| 128 | 125 | ||
| 129 | (define-key iris-function-map "\e[068q" [?\M--]) | 126 | (define-key map "\e[056q" [?\C-0]) |
| 127 | (define-key map "\e[067q" [?\M-0]) | ||
| 130 | 128 | ||
| 131 | (define-key iris-function-map "\e[069q" [?\C-=]) | 129 | (define-key map "\e[068q" [?\M--]) |
| 132 | (define-key iris-function-map "\e[070q" [?\M-=]) | ||
| 133 | 130 | ||
| 134 | ;; I don't know what to do with those. | 131 | (define-key map "\e[069q" [?\C-=]) |
| 135 | ;;(define-key iris-function-map "^H" [<del>]) | 132 | (define-key map "\e[070q" [?\M-=]) |
| 136 | ;;(define-key iris-function-map "^H" [S-<del>]) | ||
| 137 | ;;(define-key iris-function-map "\177" [C-<del>]) | ||
| 138 | ;;(define-key iris-function-map "\e[071q" [M-<del>]) | ||
| 139 | 133 | ||
| 140 | (define-key iris-function-map "\e[Z" [?\S-\t]) | 134 | ;; I don't know what to do with those. |
| 141 | (define-key iris-function-map "\e[072q" [?\C-\t]) | 135 | ;;(define-key map "^H" [<del>]) |
| 142 | ;; This only works if you remove the M-TAB keybing from the system.4Dwmrc | 136 | ;;(define-key map "^H" [S-<del>]) |
| 143 | ;; our your ~/.4Dwmrc, if you use the 4Dwm window manager. | 137 | ;;(define-key map "\177" [C-<del>]) |
| 144 | (define-key iris-function-map "\e[073q" [?\M-\t]) | 138 | ;;(define-key map "\e[071q" [M-<del>]) |
| 145 | 139 | ||
| 146 | (define-key iris-function-map "\e[074q" [?\M-q]) | 140 | (define-key map "\e[Z" [?\S-\t]) |
| 141 | (define-key map "\e[072q" [?\C-\t]) | ||
| 142 | ;; This only works if you remove the M-TAB keybing from the system.4Dwmrc | ||
| 143 | ;; our your ~/.4Dwmrc, if you use the 4Dwm window manager. | ||
| 144 | (define-key map "\e[073q" [?\M-\t]) | ||
| 147 | 145 | ||
| 148 | (define-key iris-function-map "\e[075q" [?\M-w]) | 146 | (define-key map "\e[074q" [?\M-q]) |
| 149 | 147 | ||
| 150 | (define-key iris-function-map "\e[076q" [?\M-e]) | 148 | (define-key map "\e[075q" [?\M-w]) |
| 151 | 149 | ||
| 152 | (define-key iris-function-map "\e[077q" [?\M-r]) | 150 | (define-key map "\e[076q" [?\M-e]) |
| 153 | 151 | ||
| 154 | (define-key iris-function-map "\e[078q" [?\M-t]) | 152 | (define-key map "\e[077q" [?\M-r]) |
| 155 | 153 | ||
| 156 | (define-key iris-function-map "\e[079q" [?\M-y]) | 154 | (define-key map "\e[078q" [?\M-t]) |
| 157 | 155 | ||
| 158 | (define-key iris-function-map "\e[080q" [?\M-u]) | 156 | (define-key map "\e[079q" [?\M-y]) |
| 159 | 157 | ||
| 160 | (define-key iris-function-map "\e[081q" [?\M-i]) | 158 | (define-key map "\e[080q" [?\M-u]) |
| 161 | 159 | ||
| 162 | (define-key iris-function-map "\e[082q" [?\M-o]) | 160 | (define-key map "\e[081q" [?\M-i]) |
| 163 | 161 | ||
| 164 | (define-key iris-function-map "\e[083q" [?\M-p]) | 162 | (define-key map "\e[082q" [?\M-o]) |
| 165 | 163 | ||
| 166 | (define-key iris-function-map "\e[084q" [?\M-\[]) | 164 | (define-key map "\e[083q" [?\M-p]) |
| 167 | 165 | ||
| 168 | (define-key iris-function-map "\e[085q" [?\M-\]]) | 166 | (define-key map "\e[084q" [?\M-\[]) |
| 169 | 167 | ||
| 170 | (define-key iris-function-map "\e[086q" [?\M-\\]) | 168 | (define-key map "\e[085q" [?\M-\]]) |
| 171 | 169 | ||
| 172 | (define-key iris-function-map "\e[087q" [?\M-a]) | 170 | (define-key map "\e[086q" [?\M-\\]) |
| 173 | 171 | ||
| 174 | (define-key iris-function-map "\e[088q" [?\M-s]) | 172 | (define-key map "\e[087q" [?\M-a]) |
| 175 | 173 | ||
| 176 | (define-key iris-function-map "\e[089q" [?\M-d]) | 174 | (define-key map "\e[088q" [?\M-s]) |
| 177 | 175 | ||
| 178 | (define-key iris-function-map "\e[090q" [?\M-f]) | 176 | (define-key map "\e[089q" [?\M-d]) |
| 179 | 177 | ||
| 180 | (define-key iris-function-map "\e[091q" [?\M-g]) | 178 | (define-key map "\e[090q" [?\M-f]) |
| 181 | 179 | ||
| 182 | (define-key iris-function-map "\e[092q" [?\M-h]) | 180 | (define-key map "\e[091q" [?\M-g]) |
| 183 | 181 | ||
| 184 | (define-key iris-function-map "\e[093q" [?\M-j]) | 182 | (define-key map "\e[092q" [?\M-h]) |
| 185 | 183 | ||
| 186 | (define-key iris-function-map "\e[094q" [?\M-k]) | 184 | (define-key map "\e[093q" [?\M-j]) |
| 187 | 185 | ||
| 188 | (define-key iris-function-map "\e[095q" [?\M-l]) | 186 | (define-key map "\e[094q" [?\M-k]) |
| 189 | 187 | ||
| 190 | (define-key iris-function-map "\e[096q" [?\C-\;]) | 188 | (define-key map "\e[095q" [?\M-l]) |
| 191 | (define-key iris-function-map "\e[097q" [?\M-:]) ;; we are cheating | ||
| 192 | ;; here, this is realy | ||
| 193 | ;; M-;, but M-: | ||
| 194 | ;; generates the same | ||
| 195 | ;; string and is more | ||
| 196 | ;; usefull. | ||
| 197 | 189 | ||
| 198 | (define-key iris-function-map "\e[098q" [?\C-']) | 190 | (define-key map "\e[096q" [?\C-\;]) |
| 199 | (define-key iris-function-map "\e[099q" [?\M-']) | 191 | ;; We are cheating here, this is really M-;, but M-: generates the same |
| 192 | ;; string and is more useful. | ||
| 193 | (define-key map "\e[097q" [?\M-:]) | ||
| 200 | 194 | ||
| 201 | (define-key iris-function-map "\e[100q" [?\M-\n]) | 195 | (define-key map "\e[098q" [?\C-']) |
| 196 | (define-key map "\e[099q" [?\M-']) | ||
| 202 | 197 | ||
| 203 | (define-key iris-function-map "\e[101q" [?\M-z]) | 198 | (define-key map "\e[100q" [?\M-\n]) |
| 204 | 199 | ||
| 205 | (define-key iris-function-map "\e[102q" [?\M-x]) | 200 | (define-key map "\e[101q" [?\M-z]) |
| 206 | 201 | ||
| 207 | (define-key iris-function-map "\e[103q" [?\M-c]) | 202 | (define-key map "\e[102q" [?\M-x]) |
| 208 | 203 | ||
| 209 | (define-key iris-function-map "\e[104q" [?\M-v]) | 204 | (define-key map "\e[103q" [?\M-c]) |
| 210 | 205 | ||
| 211 | (define-key iris-function-map "\e[105q" [?\M-b]) | 206 | (define-key map "\e[104q" [?\M-v]) |
| 212 | 207 | ||
| 213 | (define-key iris-function-map "\e[106q" [M-n]) | 208 | (define-key map "\e[105q" [?\M-b]) |
| 214 | 209 | ||
| 215 | (define-key iris-function-map "\e[107q" [M-m]) | 210 | (define-key map "\e[106q" [M-n]) |
| 216 | 211 | ||
| 217 | (define-key iris-function-map "\e[108q" [?\C-,]) | 212 | (define-key map "\e[107q" [M-m]) |
| 218 | (define-key iris-function-map "\e[109q" [?\M-,]) | ||
| 219 | 213 | ||
| 220 | (define-key iris-function-map "\e[110q" [?\C-.]) | 214 | (define-key map "\e[108q" [?\C-,]) |
| 221 | (define-key iris-function-map "\e[111q" [?\M-.]) | 215 | (define-key map "\e[109q" [?\M-,]) |
| 222 | 216 | ||
| 223 | (define-key iris-function-map "\e[112q" [?\C-/]) | 217 | (define-key map "\e[110q" [?\C-.]) |
| 224 | (define-key iris-function-map "\e[113q" [?\M-/]) | 218 | (define-key map "\e[111q" [?\M-.]) |
| 225 | 219 | ||
| 226 | (define-key iris-function-map "\e[139q" [insert]) | 220 | (define-key map "\e[112q" [?\C-/]) |
| 227 | (define-key iris-function-map "\e[139q" [S-insert]) | 221 | (define-key map "\e[113q" [?\M-/]) |
| 228 | (define-key iris-function-map "\e[140q" [C-insert]) | ||
| 229 | (define-key iris-function-map "\e[141q" [M-insert]) | ||
| 230 | 222 | ||
| 231 | (define-key iris-function-map "\e[H" [home]) | 223 | (define-key map "\e[139q" [insert]) |
| 232 | (define-key iris-function-map "\e[143q" [S-home]) | 224 | (define-key map "\e[139q" [S-insert]) |
| 233 | (define-key iris-function-map "\e[144q" [C-home]) | 225 | (define-key map "\e[140q" [C-insert]) |
| 226 | (define-key map "\e[141q" [M-insert]) | ||
| 234 | 227 | ||
| 228 | (define-key map "\e[H" [home]) | ||
| 229 | (define-key map "\e[143q" [S-home]) | ||
| 230 | (define-key map "\e[144q" [C-home]) | ||
| 235 | 231 | ||
| 236 | (define-key iris-function-map "\e[150q" [prior]) | ||
| 237 | (define-key iris-function-map "\e[151q" [S-prior]) ;; those don't seem | ||
| 238 | ;; to generate | ||
| 239 | ;; anything | ||
| 240 | (define-key iris-function-map "\e[152q" [C-prior]) | ||
| 241 | 232 | ||
| 233 | (define-key map "\e[150q" [prior]) | ||
| 234 | (define-key map "\e[151q" [S-prior]) ;Those don't seem to generate anything. | ||
| 235 | (define-key map "\e[152q" [C-prior]) | ||
| 242 | 236 | ||
| 243 | ;; (define-key iris-function-map "^?" [delete]) ?? something else seems to take care of this. | ||
| 244 | (define-key iris-function-map "\e[P" [S-delete]) | ||
| 245 | (define-key iris-function-map "\e[142q" [C-delete]) | ||
| 246 | (define-key iris-function-map "\e[M" [M-delete]) | ||
| 247 | 237 | ||
| 248 | (define-key iris-function-map "\e[146q" [end]) | 238 | ;; (define-key map "^?" [delete]) ?? something else seems to take care of this. |
| 249 | (define-key iris-function-map "\e[147q" [S-end]) ;; those don't seem to | 239 | (define-key map "\e[P" [S-delete]) |
| 250 | ;; generate anything | 240 | (define-key map "\e[142q" [C-delete]) |
| 251 | (define-key iris-function-map "\e[148q" [C-end]) | 241 | (define-key map "\e[M" [M-delete]) |
| 252 | 242 | ||
| 253 | (define-key iris-function-map "\e[154q" [next]) | 243 | (define-key map "\e[146q" [end]) |
| 254 | (define-key iris-function-map "\e[155q" [S-next]) | 244 | (define-key map "\e[147q" [S-end]) ; Those don't seem to generate anything. |
| 255 | (define-key iris-function-map "\e[156q" [C-next]) | 245 | (define-key map "\e[148q" [C-end]) |
| 256 | 246 | ||
| 247 | (define-key map "\e[154q" [next]) | ||
| 248 | (define-key map "\e[155q" [S-next]) | ||
| 249 | (define-key map "\e[156q" [C-next]) | ||
| 257 | 250 | ||
| 258 | (define-key iris-function-map "\e[161q" [S-up]) | ||
| 259 | (define-key iris-function-map "\e[162q" [C-up]) | ||
| 260 | (define-key iris-function-map "\e[163q" [M-up]) | ||
| 261 | 251 | ||
| 262 | (define-key iris-function-map "\e[158q" [S-left]) | 252 | (define-key map "\e[161q" [S-up]) |
| 263 | (define-key iris-function-map "\e[159q" [C-left]) | 253 | (define-key map "\e[162q" [C-up]) |
| 264 | (define-key iris-function-map "\e[160q" [M-left]) | 254 | (define-key map "\e[163q" [M-up]) |
| 265 | 255 | ||
| 266 | (define-key iris-function-map "\e[164q" [S-down]) | 256 | (define-key map "\e[158q" [S-left]) |
| 267 | (define-key iris-function-map "\e[165q" [C-down]) | 257 | (define-key map "\e[159q" [C-left]) |
| 268 | (define-key iris-function-map "\e[166q" [M-down]) | 258 | (define-key map "\e[160q" [M-left]) |
| 269 | 259 | ||
| 270 | (define-key iris-function-map "\e[167q" [S-right]) | 260 | (define-key map "\e[164q" [S-down]) |
| 271 | (define-key iris-function-map "\e[168q" [C-right]) | 261 | (define-key map "\e[165q" [C-down]) |
| 272 | (define-key iris-function-map "\e[169q" [M-right]) | 262 | (define-key map "\e[166q" [M-down]) |
| 273 | 263 | ||
| 274 | ;; Keypad functions, most of those are untested. | 264 | (define-key map "\e[167q" [S-right]) |
| 275 | (define-key iris-function-map "\e[179q" [?\C-/]) | 265 | (define-key map "\e[168q" [C-right]) |
| 276 | (define-key iris-function-map "\e[180q" [?\M-/]) | 266 | (define-key map "\e[169q" [M-right]) |
| 277 | 267 | ||
| 278 | (define-key iris-function-map "\e[187q" [?\C-*]) | 268 | ;; Keypad functions, most of those are untested. |
| 279 | (define-key iris-function-map "\e[188q" [?\M-*]) | 269 | (define-key map "\e[179q" [?\C-/]) |
| 270 | (define-key map "\e[180q" [?\M-/]) | ||
| 280 | 271 | ||
| 281 | (define-key iris-function-map "\e[198q" [?\C--]) | 272 | (define-key map "\e[187q" [?\C-*]) |
| 282 | (define-key iris-function-map "\e[199q" [?\M--]) | 273 | (define-key map "\e[188q" [?\M-*]) |
| 283 | 274 | ||
| 284 | ;; Something else takes care of home, up, prior, down, left, right, next | 275 | (define-key map "\e[198q" [?\C--]) |
| 285 | ;(define-key iris-function-map "\e[H" [home]) | 276 | (define-key map "\e[199q" [?\M--]) |
| 286 | (define-key iris-function-map "\e[172q" [C-home]) | ||
| 287 | 277 | ||
| 288 | ;(define-key iris-function-map "\e[A" [up]) | 278 | ;; Something else takes care of home, up, prior, down, left, right, next |
| 289 | (define-key iris-function-map "\e[182q" [C-up]) | 279 | ;;(define-key map "\e[H" [home]) |
| 280 | (define-key map "\e[172q" [C-home]) | ||
| 290 | 281 | ||
| 282 | ;;(define-key map "\e[A" [up]) | ||
| 283 | (define-key map "\e[182q" [C-up]) | ||
| 291 | 284 | ||
| 292 | ;(define-key iris-function-map "\e[150q" [prior]) | ||
| 293 | (define-key iris-function-map "\e[190q" [C-prior]) | ||
| 294 | 285 | ||
| 286 | ;;(define-key map "\e[150q" [prior]) | ||
| 287 | (define-key map "\e[190q" [C-prior]) | ||
| 295 | 288 | ||
| 296 | (define-key iris-function-map "\e[200q" [?\C-+]) | ||
| 297 | (define-key iris-function-map "\e[201q" [?\M-+]) | ||
| 298 | 289 | ||
| 299 | ;(define-key iris-function-map "\e[D" [left]) | 290 | (define-key map "\e[200q" [?\C-+]) |
| 300 | (define-key iris-function-map "\e[174q" [C-left]) | 291 | (define-key map "\e[201q" [?\M-+]) |
| 301 | 292 | ||
| 293 | ;;(define-key map "\e[D" [left]) | ||
| 294 | (define-key map "\e[174q" [C-left]) | ||
| 302 | 295 | ||
| 303 | (define-key iris-function-map "\e[000q" [begin]) | ||
| 304 | (define-key iris-function-map "\e[184q" [C-begin]) | ||
| 305 | 296 | ||
| 297 | (define-key map "\e[000q" [begin]) | ||
| 298 | (define-key map "\e[184q" [C-begin]) | ||
| 306 | 299 | ||
| 307 | ;(define-key iris-function-map "\e[C" [right]) | ||
| 308 | (define-key iris-function-map "\e[192q" [C-right]) | ||
| 309 | 300 | ||
| 310 | ;(define-key iris-function-map "\e[146q" [end]) | 301 | ;;(define-key map "\e[C" [right]) |
| 311 | (define-key iris-function-map "\e[176q" [C-end]) | 302 | (define-key map "\e[192q" [C-right]) |
| 312 | 303 | ||
| 313 | ;(define-key iris-function-map "\e[B" [down]) | 304 | ;;(define-key map "\e[146q" [end]) |
| 314 | (define-key iris-function-map "\e[186q" [C-down]) | 305 | (define-key map "\e[176q" [C-end]) |
| 315 | 306 | ||
| 316 | ;(define-key iris-function-map "\e[154q" [next]) | 307 | ;;(define-key map "\e[B" [down]) |
| 317 | (define-key iris-function-map "\e[194q" [C-next]) | 308 | (define-key map "\e[186q" [C-down]) |
| 318 | 309 | ||
| 310 | ;;(define-key map "\e[154q" [next]) | ||
| 311 | (define-key map "\e[194q" [C-next]) | ||
| 319 | 312 | ||
| 320 | (define-key iris-function-map "\e[100q" [M-enter]) | 313 | (define-key map "\e[100q" [M-enter]) |
| 321 | 314 | ||
| 322 | (define-key iris-function-map "\e[139q" [insert]) | 315 | (define-key map "\e[139q" [insert]) |
| 323 | (define-key iris-function-map "\e[178q" [C-inset]) | 316 | (define-key map "\e[178q" [C-inset]) |
| 324 | 317 | ||
| 325 | (define-key iris-function-map "\e[P" [delete]) | 318 | (define-key map "\e[P" [delete]) |
| 326 | (define-key iris-function-map "\e[196q" [C-delete]) | 319 | (define-key map "\e[196q" [C-delete]) |
| 327 | (define-key iris-function-map "\e[197q" [M-delete]) | 320 | (define-key map "\e[197q" [M-delete]) |
| 321 | map) | ||
| 322 | "Function key definitions for SGI xwsh and winterm apps.") | ||
| 328 | 323 | ||
| 329 | (defun terminal-init-iris-ansi () | 324 | (defun terminal-init-iris-ansi () |
| 330 | "Terminal initialization function for iris-ansi." | 325 | "Terminal initialization function for iris-ansi." |