Commit de3c715d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(terminal-emulator): Test system-configuration

to decide on terminfo vs termcap.
(te-terminfo-systems-regexp): Renamed from te-terminfo-systems.
parent 398e98d1
...@@ -162,8 +162,11 @@ performance.") ...@@ -162,8 +162,11 @@ performance.")
;; Required to support terminfo systems ;; Required to support terminfo systems
(defconst te-terminal-name-prefix "emacs-virtual") (defconst te-terminal-name-prefix "emacs-virtual")
(defvar te-terminal-name nil) (defvar te-terminal-name nil)
(defvar te-terminfo-systems '(hpux usg-unix-v) (defvar te-terminfo-systems-regexp "^[^-]*-[^-]*-\\(hpux\\|sysv\\)"
"List of system types that support terminfo instead of termcap") "Regexp to match system configurations for which we use terminfo.
That means we provide a Terminfo terminal definition instead
of a Termcap terminal definition, for the emulated terminal.
On all other systems, we use termcap.")
;;;; escape map ;;;; escape map
...@@ -1224,7 +1227,7 @@ of the terminal-emulator" ...@@ -1224,7 +1227,7 @@ of the terminal-emulator"
(defun te-create-terminfo () (defun te-create-terminfo ()
"Create and compile a terminfo entry for the virtual terminal. This is kept "Create and compile a terminfo entry for the virtual terminal. This is kept
in the /tmp directory" in the /tmp directory"
(if (and (member system-type te-terminfo-systems) (if (and (string-match te-terminfo-systems system-configuration)
(not (file-exists-p (concat "/tmp/" (not (file-exists-p (concat "/tmp/"
(substring te-terminal-name-prefix 0 1) (substring te-terminal-name-prefix 0 1)
"/" te-terminal-name)))) "/" te-terminal-name))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment