Closed ezchi closed 1 year ago
Try to use filter on make-process as below:
make-process
(let ((process-environment (add-to-list 'process-environment "TERM=xterm-256color"))) (make-process :command (list "sh" "-c" "scons") :buffer "*foo*" :filter (lambda (_process string) (xterm-color-filter string))))
But I still not get color in the process buffer:
^[[90m# seed = random ^[[32m# Info ....
The filter function needs to execute in the context of the given buffer (since it keeps buffer-local state). You can use something like:
(with-current-buffer "*foo*" (insert (xterm-color-filter string)))
Try to use filter on
make-process
as below:But I still not get color in the process buffer: