ghosr@sersun0.essex.ac.uk (Ghosh-Roy R) (10/11/90)
I am using XView-2.0 to display a frame which has a panel with lots of buttons and a `tty' window. The buttons are used to call certain parts of my programs which work fine for stdout/stdin/stderr. I have a `Print' button which `fprintf's lots of strings on the stdout without any problem, for any amount of printing. I then decided to use TTY_TTY_FD and dup2 on my `tty' window to imitate `stdout'. Of course, it works fine and it `fprintf's happily on my `tty' window. However it does not print anything if there are lots to print. Note: The problem does not arise at all for normal `stdout'. Is there any buffer length restriction on the amount one can print, on a tty window created by the user? I also have a `Quit' button which activates xv_destroy_frame(frame). I am surprised to find that it reports `Hangup' error message even if it is pushed just after displaying the window. Note: My programs don't initialize anything unless activated by a push button. (0206) 87 22 97 (0206 22) 42 63 National + 44 206 87 22 97 + 44 206 22 42 63 InterNational Room No.: 4B.526, Department of Computer Science, University of Essex Wivenhoe Park, Colchester Essex CO4 3SQ, England, UK (ghosr@essex.ac.uk)