The console API the colors go through on Windows, or a stand-in for tests: query reads a stream's attributes and says
whether it is a console, apply sets them. A stream that is redirected to a file is left alone.
Fields
- query: (to_standard_error: bool) -> (u16, bool)
- apply: (to_standard_error: bool, attributes: u16)