Variable: ansi-color-context

ansi-color-context is a buffer-local variable defined in ansi-color.el.gz.

Documentation

Context saved between two calls to ansi-color-apply.

This is a list of the form (FACE-VEC FRAGMENT) or nil. FACE-VEC represents the state the last call to ansi-color-apply ended with, currently a list of the form:

  (BASIC-FACES FG BG)

BASIC-FACES is a bool-vector that specifies which basic faces from ansi-color-basic-faces-vector to apply. FG and BG are ANSI color codes for the foreground and background color.

FRAGMENT is a string starting with an escape sequence, possibly the start of a new escape sequence.

Source Code

;; Defined in /usr/src/emacs/lisp/ansi-color.el.gz
;; Working with strings
(defvar-local ansi-color-context nil
  "Context saved between two calls to `ansi-color-apply'.
This is a list of the form (FACE-VEC FRAGMENT) or nil.  FACE-VEC
represents the state the last call to `ansi-color-apply' ended
with, currently a list of the form:

  (BASIC-FACES FG BG)

BASIC-FACES is a bool-vector that specifies which basic faces
from `ansi-color-basic-faces-vector' to apply.  FG and BG are
ANSI color codes for the foreground and background color.

FRAGMENT is a string starting with an escape sequence, possibly
the start of a new escape sequence.")