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
Original comment by Michael Diamond (Bitbucket: dimo414).
Possible partial solutions include those listed on tldp ($PS1 is set, $- contains i, or perhaps starting a subprocess to call test -t {0,1,2}). On Ubuntu the file descriptors in /dev/fd/are symlinks to /dev/pts/N (and perhaps /dev/ttyN` if attached to a native terminal device?) so checking those symlinks might also be an option.
Original report by Michael Diamond (Bitbucket: dimo414).
https://github.com/jnr/jnr-posix looks like a promising option; Java doesn't look to have anything reasonable out of the box.
The text was updated successfully, but these errors were encountered: