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
If the stdin is not a pipe, we are not coloring the output of any commands, instead we are coloring our inputs in the terminal. This looks boring and is not expected.
We have several ways to detect if stdin is a pipe or a terminal. isatty(STDIN_FILENO) can detect terminal and S_ISFIFO(st.st_mode) can detect pipe. I don't know any clue about crystal though.
The text was updated successfully, but these errors were encountered:
If the stdin is not a pipe, we are not coloring the output of any commands, instead we are coloring our inputs in the terminal. This looks boring and is not expected.
We have several ways to detect if stdin is a pipe or a terminal.
isatty(STDIN_FILENO)
can detect terminal andS_ISFIFO(st.st_mode)
can detect pipe. I don't know any clue about crystal though.The text was updated successfully, but these errors were encountered: