changeset 24966:bfa093996074

(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".
author Karl Heuer <kwzh@gnu.org>
date Tue, 20 Jul 1999 01:46:01 +0000
parents 88883af036ca
children 03990f1d9e2d
files lisp/term.el
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/term.el	Tue Jul 20 01:24:47 1999 +0000
+++ b/lisp/term.el	Tue Jul 20 01:46:01 1999 +0000
@@ -3040,12 +3040,22 @@
    ((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