Hi,
I have several small CLI apps which interact with the user by simple putchar/getchar calls. There is a nice GNU library out there which serves as an editor frontend to CLI applications: readline, which I would like to add to my existing projects. Instead of extending every single app, I'd like to write some kind of frontend which would serve as an editor. For example, currently I run a program "foo", which would then be called as
frontend foo
from the Terminal.
How can "frontend" launch another process ("foo") and how can it feed foo's stdin/stdout?
Thanks,
Daniel