Function: term--maybe-brighten-color
term--maybe-brighten-color is a byte-compiled function defined in
term.el.gz.
Signature
(term--maybe-brighten-color COLOR BOLD)
Documentation
Possibly convert COLOR to its bright variant.
COLOR is an index into ansi-term-color-vector. If BOLD and
ansi-color-bold-is-bright are non-nil and COLOR is a regular color,
return the bright version of COLOR; otherwise, return COLOR.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term--maybe-brighten-color (color bold)
"Possibly convert COLOR to its bright variant.
COLOR is an index into `ansi-term-color-vector'. If BOLD and
`ansi-color-bold-is-bright' are non-nil and COLOR is a regular color,
return the bright version of COLOR; otherwise, return COLOR."
(if (and ansi-color-bold-is-bright bold (<= 1 color 8))
(+ color 8)
color))