# HG changeset patch # User Richard M. Stallman # Date 739946098 0 # Node ID c77a3da2d08d2ed403265381d529e76cdb43a84b # Parent 9e0f49a8f9672afece1a72cbf8a07561791292dd (Man-getpage-in-background): Use TERM=dumb to prevent terminal control sequences in the output. diff -r 9e0f49a8f967 -r c77a3da2d08d lisp/man.el --- a/lisp/man.el Sun Jun 13 04:18:43 1993 +0000 +++ b/lisp/man.el Sun Jun 13 04:34:58 1993 +0000 @@ -445,9 +445,12 @@ (Man-notify-when-ready buffer) (message "Invoking man %s in background..." man-args) (setq buffer (generate-new-buffer bufname)) - (set-process-sentinel - (start-process "man" buffer "sh" "-c" - (format (Man-build-man-command) man-args)) + (let ((process-environment process-environment)) + ;; Prevent any attempt to use display terminal fanciness. + (setenv "TERM" "dumb") + (set-process-sentinel + (start-process "man" buffer "sh" "-c" + (format (Man-build-man-command) man-args))) 'Man-bgproc-sentinel)) ))