Activity for gnoutchd
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Edit | Post #296153 | Initial revision | — | 4 months ago |
| Answer | — |
A: How do programs like `less` receive keyboard input as well as from a pipe? As you've observed, programs like `less` don't rely on STDIN for interactive input. Instead, they look for their controlling terminal and open a new file descriptor reading from that. On most systems, that's achieved by opening `/dev/tty` for reading. Much as with STDIN/STDOUT/STDERR, a Unix pr... (more) |
— | 4 months ago |
