P
PaowZ
Hello there,
I'm trying to program a little app where I need to input data into a
first terminal (the one I launch the process) and to ouput data into
another terminal. So I need to open a terminal during execution. After
some searches, I got interested in openpty() function.
I read some examples and man-pages but something is not very clear in
my mind.
Does this function allow opening new terminal or what ?
Do I expect the right aim of this function ?
'Cause when I run my prog, nothing happens, so I wonder :S
Here the lines:
int master, slave;
if (openpty ( &master, &slave, NULL, NULL, NULL) < 0)
error("Error !!!");
Thanks a lot.
I'm trying to program a little app where I need to input data into a
first terminal (the one I launch the process) and to ouput data into
another terminal. So I need to open a terminal during execution. After
some searches, I got interested in openpty() function.
I read some examples and man-pages but something is not very clear in
my mind.
Does this function allow opening new terminal or what ?
Do I expect the right aim of this function ?
'Cause when I run my prog, nothing happens, so I wonder :S
Here the lines:
int master, slave;
if (openpty ( &master, &slave, NULL, NULL, NULL) < 0)
error("Error !!!");
Thanks a lot.