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

(comint-exec-1): Use dumb instead of unknown, for terminfo.

parent d7ce568f
......@@ -582,13 +582,13 @@ buffer. The hook `comint-exec-hook' is run after each exec."
(nconc
;; If using termcap, we specify `emacs' as the terminal type
;; because that lets us specify a width.
;; If using terminfo, we specify `unknown' because that is
;; If using terminfo, we specify `dumb' because that is
;; a defined terminal type. `emacs' is not a defined terminal type
;; and there is no way for us to define it here.
;; Some programs that use terminfo get very confused
;; if TERM is not a valid terminal type.
(if (and (boundp 'system-uses-terminfo) system-uses-terminfo)
(list "TERM=unknown"
(list "TERM=dumb"
(format "COLUMNS=%d" (frame-width)))
(list "TERM=emacs"
(format "TERMCAP=emacs:co#%d:tc=unknown:" (frame-width))))
......
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