1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-24 08:51:10 -08:00

* net/shr.el (shr-colorize-region): Allow 88-color tty to use colors.

Suggested by Eli Zaretskii.
This commit is contained in:
Katsumi Yamaoka 2015-09-29 06:30:48 +00:00
parent 888d644f0b
commit 8b95ee49bc

View file

@ -1042,7 +1042,7 @@ ones, in case fg and bg are nil."
(shr-color-visible bg fg)))))))
(defun shr-colorize-region (start end fg &optional bg)
(when (and (or fg bg) (>= (display-color-cells) 256))
(when (and (or fg bg) (>= (display-color-cells) 88))
(let ((new-colors (shr-color-check fg bg)))
(when new-colors
(when fg