pub fn fmt_supported_stdout() -> boolExpand description
Are ANSI format sequences supported on stdout?
- On Unix this is reliable, returning
trueonly if stdout is connected to a tty (as opposed to being redirected to a file or other program). - On Windows, this gives an answer on the same principle, however even if returning
truesuch that we know we are connected to a terminal, this does not mean that the terminal actually supports ANSI control sequences. Before Windows 10 you should assume not. On Windows 10+ you must use the [enable_ansi_support()] function to turn on support.