Commit 9b802130 authored by Karl Heuer's avatar Karl Heuer
Browse files

(ansi-term-fg-faces-vector): Added support for ANSI

color codes 39 and 49, which by the way lynx uses them seem to
mean "foreground reset" and "background reset".
parent 9e545350
......@@ -3040,12 +3040,22 @@ See `term-prompt-regexp'."
((eq parameter 8)
(setq term-ansi-current-invisible 1))
;;; Foreground
((and (>= parameter 30) (<= parameter 37))
(setq term-ansi-current-color (- parameter 29)))
;;; Reset foreground
((eq parameter 39)
(setq term-ansi-current-color 0))
;;; Background
((and (>= parameter 40) (<= parameter 47))
(setq term-ansi-current-bg-color (- parameter 39)))
;;; Reset background
((eq parameter 49)
(setq term-ansi-current-bg-color 0))
;;; 0 (Reset) or unknown (reset anyway)
(t
(setq term-current-face
......
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