Function term_ctrl::support::fmt_supported_stderr[][src]

pub fn fmt_supported_stderr() -> bool
Expand description

Are ANSI format sequences supported on stderr?

  • On Unix this is reliable, returning true only if stderr 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 true such 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.