You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pfetch is invoked in an environment in which stdout is not a terminal (e.g., when piping the program's output to another program), then color sequences should not be emitted (unless some explicit "force color" option is given), and the crossterm sequences for disabling & enabling line wrapping should not be emitted either.
FYI, you can test whether stdout is a terminal using the std::io::IsTerminal trait introduced in Rust 1.70.
The text was updated successfully, but these errors were encountered:
When
pfetch
is invoked in an environment in whichstdout
is not a terminal (e.g., when piping the program's output to another program), then color sequences should not be emitted (unless some explicit "force color" option is given), and thecrossterm
sequences for disabling & enabling line wrapping should not be emitted either.FYI, you can test whether
stdout
is a terminal using thestd::io::IsTerminal
trait introduced in Rust 1.70.The text was updated successfully, but these errors were encountered: