Created
April 24, 2014 05:02
-
-
Save sellout/11242089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun ansi-color-insertion-filter (proc string) | |
(when (buffer-live-p (process-buffer proc)) | |
(with-current-buffer (process-buffer proc) | |
(save-excursion | |
;; Insert the text, advancing the process marker. | |
(goto-char (process-mark proc)) | |
(insert (ansi-color-apply string)) | |
(set-marker (process-mark proc) (point))) | |
(goto-char (process-mark proc))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment