aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-04-08 06:59:55 +0000
committerKarl Heuer1994-04-08 06:59:55 +0000
commit07c57952d8364663eb2abd979457cc880b7fd855 (patch)
tree0232acf479b8ad52d8a0efe36e1031fb52622452
parent0d934e7b31dc3a023f2cb25b21b5eab1ba6bad04 (diff)
downloademacs-07c57952d8364663eb2abd979457cc880b7fd855.tar.gz
emacs-07c57952d8364663eb2abd979457cc880b7fd855.zip
(system_uses_terminfo): New variable.
(syms_of_term): New function, to initialize it.
-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}