aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-30 20:48:30 +0000
committerRichard M. Stallman1994-12-30 20:48:30 +0000
commitde3c715dd1674ea0d39d706e4c408aac32c5c463 (patch)
tree0fcbe86d1a90ffde24b2adbd44c78a2bc1e62ef3
parent398e98d1c2531b12f83a1c4e2079fc9e4f8a937b (diff)
downloademacs-de3c715dd1674ea0d39d706e4c408aac32c5c463.tar.gz
emacs-de3c715dd1674ea0d39d706e4c408aac32c5c463.zip
(terminal-emulator): Test system-configuration
to decide on terminfo vs termcap. (te-terminfo-systems-regexp): Renamed from te-terminfo-systems.
-rw-r--r--lisp/terminal.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el
index ebb74c3d038..d5a89b7e492 100644
--- a/lisp/terminal.el
+++ b/lisp/terminal.el
@@ -162,8 +162,11 @@ performance.")
162;; Required to support terminfo systems 162;; Required to support terminfo systems
163(defconst te-terminal-name-prefix "emacs-virtual") 163(defconst te-terminal-name-prefix "emacs-virtual")
164(defvar te-terminal-name nil) 164(defvar te-terminal-name nil)
165(defvar te-terminfo-systems '(hpux usg-unix-v) 165(defvar te-terminfo-systems-regexp "^[^-]*-[^-]*-\\(hpux\\|sysv\\)"
166"List of system types that support terminfo instead of termcap") 166 "Regexp to match system configurations for which we use terminfo.
167That means we provide a Terminfo terminal definition instead
168of a Termcap terminal definition, for the emulated terminal.
169On all other systems, we use termcap.")
167 170
168 171
169;;;; escape map 172;;;; escape map
@@ -1224,7 +1227,7 @@ of the terminal-emulator"
1224(defun te-create-terminfo () 1227(defun te-create-terminfo ()
1225 "Create and compile a terminfo entry for the virtual terminal. This is kept 1228 "Create and compile a terminfo entry for the virtual terminal. This is kept
1226in the /tmp directory" 1229in the /tmp directory"
1227 (if (and (member system-type te-terminfo-systems) 1230 (if (and (string-match te-terminfo-systems system-configuration)
1228 (not (file-exists-p (concat "/tmp/" 1231 (not (file-exists-p (concat "/tmp/"
1229 (substring te-terminal-name-prefix 0 1) 1232 (substring te-terminal-name-prefix 0 1)
1230 "/" te-terminal-name)))) 1233 "/" te-terminal-name))))