I have a particular problem to solve. I need to redirect a printf of a program to the stdin of the "system".
I do not want to pipe the stdin as a child of another program. What I want to do is "simply" override the keyboard and allow any application that has the system focus to catch the printf of my application as a simple keyboard input.
How can I do this (without pipes)?