4 ms·
You get false positives sometimes (where it claims to not be a tty but is going to the screen), but because the fall back is just reduced functionality it never
by dickeytk 8y ago
You get false positives sometimes (where it claims to not be a tty but is going to the screen), but because the fall back is just reduced functionality it never causes any issues. We make hundreds of checks like this for tty in the CLI