Thanks for the reply. And yes, you do bring up some valueble points.
Quote:
Originally Posted by taylor_venable
Or do you mean a pseudo-terminal like xterm? What's the goal / purpose of your program?
|
The task was givin to me to write an "ssh-like" program that runs straight over TCP-IP connections. And will later be able to call X-applications.
That is why I'would like to redirect the display (STDOUT) and make it possible to change the STDIN to not come from the keyboard, but from another source, example the connection setup between the two systems.
I did a bit of searching and it would seem that I'm looking at working with pseudo-terminals. As it sould not have to be a tty.