Trait termion::color::DetectColors[][src]

pub trait DetectColors {
    fn available_colors(&mut self) -> Result<u16>;
}
Expand description

Types that allow detection of the colors they support.

Required methods

How many ANSI colors are supported (from 8 to 256)?

Beware: the information given isn’t authoritative, it’s infered through escape codes or the value of TERM, more colors may be available.

Implementors