diff options
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 | } | ||