diff options
| author | Eric S. Raymond | 1993-03-19 21:21:39 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1993-03-19 21:21:39 +0000 |
| commit | 01d7b9370f37ccd9b0f5a4cefd8a6884b5a2d82b (patch) | |
| tree | 6976a8e9f9ded3aeb355719117bd51d3a878b270 | |
| parent | 52f8dbf89088f1b81efbbe2100a7bb7dbef8c980 (diff) | |
| download | emacs-01d7b9370f37ccd9b0f5a4cefd8a6884b5a2d82b.tar.gz emacs-01d7b9370f37ccd9b0f5a4cefd8a6884b5a2d82b.zip | |
Info on the terminal-package-finding algorithm.
| -rw-r--r-- | lisp/term/README | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/term/README b/lisp/term/README index f31986adcfa..7307634c75c 100644 --- a/lisp/term/README +++ b/lisp/term/README | |||
| @@ -1,14 +1,21 @@ | |||
| 1 | This directory contains files of elisp that customize Emacs for certain | 1 | This directory contains files of elisp that customize Emacs for certain |
| 2 | terminal types. When Emacs starts, it checks the TERM environment variable to | 2 | terminal types. |
| 3 | see what type of terminal the user is running on, checks for an elisp file | 3 | |
| 4 | named "term/${TERM}.el", and if one exists, loads it. | 4 | When Emacs starts, it checks the TERM environment variable to see what type |
| 5 | of terminal the user is running on, checks for an elisp file named | ||
| 6 | "term/${TERM}.el", and if one exists, loads it. If that doesn't yield a file | ||
| 7 | that exists, the last hyphen and what follows it is stripped. If that doesn't | ||
| 8 | yield a file that exists, the previous hyphen is stripped, and so on until all | ||
| 9 | hyphens are gone. For example, if the terminal type is `aaa-48-foo', Emacs | ||
| 10 | will try first `term/aaa-48-foo.el', then `term/aaa-48.el' and finally | ||
| 11 | `term/aaa.el'. | ||
| 5 | 12 | ||
| 6 | When writing terminal packages, there are some things it is good to keep in | 13 | When writing terminal packages, there are some things it is good to keep in |
| 7 | mind. | 14 | mind. |
| 8 | 15 | ||
| 9 | First, about keycap names. Your terminal package can create any keycap | 16 | First, about keycap names. Your terminal package can create any keycap |
| 10 | cookies it likes, but there are good reasons to stick to the set recognized by | 17 | cookies it likes, but there are good reasons to stick to the set recognized by |
| 11 | the X-windows code whenever possible. The X key symbols recognized by Emacs | 18 | the X-windows code whenever possible. The key symbols recognized by Emacs |
| 12 | are listed in src/term.c; look for the string `keys' in that file. | 19 | are listed in src/term.c; look for the string `keys' in that file. |
| 13 | 20 | ||
| 14 | For one thing, it means that you'll have the same Emacs key bindings on in | 21 | For one thing, it means that you'll have the same Emacs key bindings on in |