Commit 8b95ee49 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka

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

Suggested by Eli Zaretskii.
parent 888d644f
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment