Skip to content

Added color support detection

Michael Aaron Murphy requested to merge IGI-111:master into master

Created by: IGI-111

This is meant at least as a partial answer to #78 (closed).

Color support is inferred by using either OSC 4 escape codes or the value of TERM. It can't detect what the terminal isn't advertising, so in certain cases, it's possible the terminal supports more colors but doesn't say.

One thing to discuss might be the the value of the timeout for answers, although 100ms works well in practice.

Merge request reports