summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid J. MacKenzie <djm@gnu.org>1995-08-21 04:33:21 +0000
committerDavid J. MacKenzie <djm@gnu.org>1995-08-21 04:33:21 +0000
commit620d6a4457df38f5cad75fe6c6c1d28945e70183 (patch)
tree59463c5a2dc3336d469cc1c4c58591e530ea84d4
parent060e4ec94991b55027fc1e53cf2b48be50310a5e (diff)
downloademacs-620d6a4457df38f5cad75fe6c6c1d28945e70183.tar.gz
default to user-supplied buffer.
-rw-r--r--src/termcap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/termcap.c b/src/termcap.c
index d26348e525c..2a270c454eb 100644
--- a/src/termcap.c
+++ b/src/termcap.c
@@ -443,6 +443,11 @@ tgetent (bp, name)
}
#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;