Function: tty-register-default-colors
tty-register-default-colors is a byte-compiled function defined in
tty-colors.el.gz.
Signature
(tty-register-default-colors)
Documentation
Register the default set of colors for a character terminal.
Source Code
;; Defined in /usr/src/emacs/lisp/term/tty-colors.el.gz
(defun tty-register-default-colors ()
"Register the default set of colors for a character terminal."
(let* ((colors tty-standard-colors)
(color (car colors)))
(while colors
(tty-color-define (car color) (cadr color) (cddr color))
(setq colors (cdr colors) color (car colors)))
;; Modifying color mappings means realized faces don't use the
;; right colors, so clear them, if we modified colors on a TTY
;; frame.
(or (display-graphic-p)
(clear-face-cache))))