colored
colored copied to clipboard
Handle possible errors in `set_virtual_terminal`
set_virtual_terminal
was changed in https://github.com/mackwic/colored/pull/68 to never return an error - this is probably incorrect, as the underlying Win32 functions can definitely return errors.
Error handling grabbed from https://github.com/borntyping/rust-simple_logger/pull/11