Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, but that has a simple solution not even mentioned in this post: isatty(1)


Just remember that stdout and stderr can be both a tty, neither a tty or one is a tty while the other is not.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: