changeset 10295:6ed7d0ea5fb9

(terminal-emulator): Test system-configuration to decide on terminfo vs termcap. (te-terminfo-systems-regexp): Renamed from te-terminfo-systems.
author Richard M. Stallman <rms@gnu.org>
date Fri, 30 Dec 1994 20:48:30 +0000
parents 23dee56d9ee4
children c58e6bb97038
files lisp/terminal.el
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/terminal.el	Fri Dec 30 20:41:25 1994 +0000
+++ b/lisp/terminal.el	Fri Dec 30 20:48:30 1994 +0000
@@ -162,8 +162,11 @@
 ;; Required to support terminfo systems
 (defconst te-terminal-name-prefix "emacs-virtual")
 (defvar te-terminal-name nil)
-(defvar te-terminfo-systems '(hpux usg-unix-v) 
-"List of system types that support terminfo instead of termcap")
+(defvar te-terminfo-systems-regexp "^[^-]*-[^-]*-\\(hpux\\|sysv\\)"
+  "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
@@ -1224,7 +1227,7 @@
 (defun te-create-terminfo ()
   "Create and compile a terminfo entry for the virtual terminal. This is kept 
 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/" 
 					(substring te-terminal-name-prefix 0 1)
 					"/" te-terminal-name))))