diff lisp/comint.el @ 6750:a864110c6fc7

(comint-exec-1): Handle both termcap and terminfo.
author Karl Heuer <kwzh@gnu.org>
date Fri, 08 Apr 1994 06:57:27 +0000
parents ff41e0e932b8
children 42c6431d1e00
line wrap: on
line diff
--- a/lisp/comint.el	Fri Apr 08 05:59:03 1994 +0000
+++ b/lisp/comint.el	Fri Apr 08 06:57:27 1994 +0000
@@ -553,9 +553,13 @@
 
 (defun comint-exec-1 (name buffer command switches)
   (let ((process-environment
-	 (nconc (list "EMACS=t" "TERM=emacs"
-		      (format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width)))
-		process-environment)))
+	 (nconc
+	  (if (and (boundp 'system-uses-terminfo) system-uses-terminfo)
+	      (list "EMACS=t" "TERM=unknown"
+		    (format "COLUMNS=%d" (frame-width)))
+	    (list "EMACS=t" "TERM=emacs"
+		  (format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width))))
+	  process-environment)))
     (apply 'start-process name buffer command switches)))
 
 ;;; Input history processing in a buffer