Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
6749:c409eb264509 | 6750:a864110c6fc7 |
---|---|
551 ;;; This auxiliary function cranks up the process for comint-exec in | 551 ;;; This auxiliary function cranks up the process for comint-exec in |
552 ;;; the appropriate environment. | 552 ;;; the appropriate environment. |
553 | 553 |
554 (defun comint-exec-1 (name buffer command switches) | 554 (defun comint-exec-1 (name buffer command switches) |
555 (let ((process-environment | 555 (let ((process-environment |
556 (nconc (list "EMACS=t" "TERM=emacs" | 556 (nconc |
557 (format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width))) | 557 (if (and (boundp 'system-uses-terminfo) system-uses-terminfo) |
558 process-environment))) | 558 (list "EMACS=t" "TERM=unknown" |
559 (format "COLUMNS=%d" (frame-width))) | |
560 (list "EMACS=t" "TERM=emacs" | |
561 (format "TERMCAP=emacs:co#%d:tc=unknown" (frame-width)))) | |
562 process-environment))) | |
559 (apply 'start-process name buffer command switches))) | 563 (apply 'start-process name buffer command switches))) |
560 | 564 |
561 ;;; Input history processing in a buffer | 565 ;;; Input history processing in a buffer |
562 ;;; =========================================================================== | 566 ;;; =========================================================================== |
563 ;;; Useful input history functions, courtesy of the Ergo group. | 567 ;;; Useful input history functions, courtesy of the Ergo group. |