changeset 6752:f9236145bad7

(system_uses_terminfo): New variable. (syms_of_term): New function, to initialize it.
author Karl Heuer <kwzh@gnu.org>
date Fri, 08 Apr 1994 06:59:55 +0000
parents e4299463079d
children 873e8baf5727
files src/term.c
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Fri Apr 08 06:58:23 1994 +0000
+++ b/src/term.c	Fri Apr 08 06:59:55 1994 +0000
@@ -281,6 +281,9 @@
 
 FRAME_PTR updating_frame;
 
+/* Provided for lisp packages.  */
+static int system_uses_terminfo;
+
 char *tparam ();
 
 ring_bell ()
@@ -1651,3 +1654,15 @@
   fflush (stderr);
   exit (1);
 }
+
+syms_of_term ()
+{
+  DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo,
+    "Non-nil means the system uses terminfo rather than termcap.\n\
+This variable can be used by terminal emulator packages.");
+#ifdef TERMINFO
+  system_uses_terminfo = 1;
+#else
+  system_uses_terminfo = 0;
+#endif
+}