Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    I think you should change the title to "Detect if running in a virtual terminal" because tty can be misunderstood to mean detect if the current shell is connected to a pseudo-terminal device. Commented Oct 17, 2013 at 11:54
  • @JosephR. Thanks for pointing that out, fixed Commented Oct 17, 2013 at 11:58
  • @JosephR: bad call. A pseudo-terminal device is p ty, not tty. About to revert to original title. Commented Sep 9, 2015 at 12:07
  • Related: unix.stackexchange.com/questions/16387/… Commented Sep 9, 2015 at 12:18