changeset 12907:6cae53a06172

default to user-supplied buffer.
author David J. MacKenzie <djm@gnu.org>
date Mon, 21 Aug 1995 04:33:21 +0000
parents 28a8f63327fc
children 2aa3e1b05567
files src/termcap.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/termcap.c	Mon Aug 21 01:15:25 1995 +0000
+++ b/src/termcap.c	Mon Aug 21 04:33:21 1995 +0000
@@ -443,6 +443,11 @@
     }
 #endif /* INTERNAL_TERMINAL */
 
+  /* For compatibility with programs like `less' that want to
+     put data in the termcap buffer themselves as a fallback.  */
+  if (bp)
+    term_entry = bp;
+
   termcap_name = getenv ("TERMCAP");
   if (termcap_name && *termcap_name == '\0')
     termcap_name = NULL;