using xterm to display output hello i am writing a program which forks of a number of child processes and each of the children printing things on the screen quite messy in one window the xterm sxxd option seems to be the solution to opening up slave windows only to display output and i use the following code to open up a pty taken from stevens and manage to open up an x term successfully the problem however is how do i write into this x term please help static char pty name int pty master void int pty master void int i fd char ptr struct stat statbuff static char ptychar pqrs static char hexdigit abcdef for ptr ptychar ptr ptr strcpy pty name dev ttyxy pty name ptr pty name if stat pty name statbuff break for i i i pty name hexdigit i if fd open pty name o rdwr return fd return vinod email vinod ee wpi edu an eye for an eye makes the whole world blind mohandas karamchand gandhi
