The console's side of the native engine: read the attribute word of a standard stream and
replace it. is_console is false for a stream that is redirected to a file or pipe (or closed),
which the engine then leaves alone entirely. Windows installs the real console API; tests (and
other platforms) install their own.
Fields
- query: (to_standard_error: bool) -> (u16, bool)
- apply: (to_standard_error: bool, attributes: u16)