pipe for adding UI on console program
Pipe is uni-direction.
If i establish 2 pipes for input and ouput of THE SAME console program,
is it a good idea for adding UI on console program?
( This idea is stupid but workable , isn't it? )
UI -> pipe1 -> console program
<- pipe2 <- the same console program
But , I don't know how to attach pipe1's output and pipe2's input to the same console program... >_<
Many examples in internet are just uni-direction.
Could someone give me an bi-direction usage example?
Thank you very much.
|