summaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
authorScott Shambarger <devel@shambarger.net>2019-11-05 17:00:32 +0000
committerAmadeusz Sławiński <amade@asmblr.net>2019-12-28 13:45:48 +0100
commit11a1fc82fb34e18832938d63c3a4471908dae017 (patch)
tree90481d1f11b36990d17e092a554d410ee2db589b /src/os.h
parentfa4f88614d3e5994cfb1372353e7316be7235060 (diff)
downloadscreen-11a1fc82fb34e18832938d63c3a4471908dae017.tar.gz
Create TERMCAP entries limited to 1023 bytes by default.
TERMCAP_BUF defaults to 1023 to create TERMCAP entries that work on most systems. To save space, TERMCAP is unwrapped, and vt220 extra keys are skipped (unless TERMCAP_BUF > 1023); navigation keys are still included. Entries larger than TERMCAP_BUF are now truncated, and no longer Panic screen. Termcap entries are still wrapped when saved to a file. Signed-off-by: Scott Shambarger <devel@shambarger.net>
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os.h b/src/os.h
index 931617f..b350e43 100644
--- a/src/os.h
+++ b/src/os.h
@@ -148,7 +148,7 @@ typedef char* slot_t; /* used internally in utmp.c */
*/
#ifndef TERMCAP_BUFSIZE
-# define TERMCAP_BUFSIZE 2048
+# define TERMCAP_BUFSIZE 1023
#endif
/*