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*

2
  • Couldn't you open /dev/tty for responses and still use stdin for data? A simple way of making input out of band Commented Jan 20, 2015 at 1:58
  • @RichHomolka less actually does open /dev/tty, but opening that device just gives the process another descriptor to the actual tty device, and with two descriptors to the same device, the reads would compete over the same queue of input characters. Commented Jan 20, 2015 at 20:23