Variable: ansi-color-context-region

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

Documentation

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

This is a list of the form (FACE-VEC MARKER) or nil. FACE-VEC represents the state the last call to ansi-color-apply-on-region 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.

MARKER is a buffer position within an escape sequence or the last position processed.

Source Code

;; Defined in /usr/src/emacs/lisp/ansi-color.el.gz
;; Working with regions

(defvar-local ansi-color-context-region nil
  "Context saved between two calls to `ansi-color-apply-on-region'.
This is a list of the form (FACE-VEC MARKER) or nil.  FACE-VEC
represents the state the last call to `ansi-color-apply-on-region'
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.

MARKER is a buffer position within an escape sequence or the last
position processed.")