Composing data processors or UI elements?
Composing data processors or UI elements?
Posted May 19, 2011 1:27 UTC (Thu) by njs (subscriber, #40338)In reply to: Composing data processors or UI elements? by Pc5Y9sbv
Parent article: Announcing TermKit
> A mildly post-Unix environment could easily provide additional standard file descriptors for data in/out, data error out, and operator TTY, allowing for example the use of a process in a data-processing pipeline while also allowing the process to use a terminal-based UI via ncurses or such.
You're actually describing a standard part of classic Unix (though not one of the better known ones!). Opening /dev/tty gives you an fd to the "controlling TTY". This is how e.g. ssh can ask you for your password even when run inside a pipeline.
