# HG changeset patch # User Karl Heuer # Date 765788247 0 # Node ID a864110c6fc797f9408f895522079d028678c8e4 # Parent c409eb2645099c3e033ca0360b61edbf3e0f5a66 (comint-exec-1): Handle both termcap and terminfo. diff -r c409eb264509 -r a864110c6fc7 lisp/comint.el --- 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