aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/term.c15
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
282FRAME_PTR updating_frame; 282FRAME_PTR updating_frame;
283 283
284/* Provided for lisp packages. */
285static int system_uses_terminfo;
286
284char *tparam (); 287char *tparam ();
285 288
286ring_bell () 289ring_bell ()
@@ -1651,3 +1654,15 @@ fatal (str, arg1, arg2)
1651 fflush (stderr); 1654 fflush (stderr);
1652 exit (1); 1655 exit (1);
1653} 1656}
1657
1658syms_of_term ()
1659{
1660 DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo,
1661 "Non-nil means the system uses terminfo rather than termcap.\n\
1662This 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}