diff options
| author | Karl Heuer | 1994-04-08 06:59:55 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-08 06:59:55 +0000 |
| commit | 07c57952d8364663eb2abd979457cc880b7fd855 (patch) | |
| tree | 0232acf479b8ad52d8a0efe36e1031fb52622452 /src | |
| parent | 0d934e7b31dc3a023f2cb25b21b5eab1ba6bad04 (diff) | |
| download | emacs-07c57952d8364663eb2abd979457cc880b7fd855.tar.gz emacs-07c57952d8364663eb2abd979457cc880b7fd855.zip | |
(system_uses_terminfo): New variable.
(syms_of_term): New function, to initialize it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 2d99fb95d58..8f7bf3aef4d 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -281,6 +281,9 @@ int specified_window; | |||
| 281 | 281 | ||
| 282 | FRAME_PTR updating_frame; | 282 | FRAME_PTR updating_frame; |
| 283 | 283 | ||
| 284 | /* Provided for lisp packages. */ | ||
| 285 | static int system_uses_terminfo; | ||
| 286 | |||
| 284 | char *tparam (); | 287 | char *tparam (); |
| 285 | 288 | ||
| 286 | ring_bell () | 289 | ring_bell () |
| @@ -1651,3 +1654,15 @@ fatal (str, arg1, arg2) | |||
| 1651 | fflush (stderr); | 1654 | fflush (stderr); |
| 1652 | exit (1); | 1655 | exit (1); |
| 1653 | } | 1656 | } |
| 1657 | |||
| 1658 | syms_of_term () | ||
| 1659 | { | ||
| 1660 | DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo, | ||
| 1661 | "Non-nil means the system uses terminfo rather than termcap.\n\ | ||
| 1662 | This variable can be used by terminal emulator packages."); | ||
| 1663 | #ifdef TERMINFO | ||
| 1664 | system_uses_terminfo = 1; | ||
| 1665 | #else | ||
| 1666 | system_uses_terminfo = 0; | ||
| 1667 | #endif | ||
| 1668 | } | ||