Tty subwindows

stanonik at nprdc.navy.mil stanonik at nprdc.navy.mil
Wed Jul 25 03:28:00 AEST 1990


I'm trying to create two tty subwindows using

    frame = window_create(NULL, FRAME, 0);
    tty1 = window_create(frame, TTY, WIN_COLUMNS, 40, 0);
    tty2 = window_create(frame, TTY, WIN_COLUMNS, 40, 0);
    window_main_loop(frame);

Although the two tty subwindows are created, the output from both ends up
in the second window.  Each subwindow does, however, correctly read input
from it's respective window.

The sunview programmers guide says, "you can only have one tty subwindow
per process".  I (mis?)understood that to mean the subwindow could only
keep track (eg, TTY_PID) of one child process, but maybe by "process" it
means parent process, as in the process which did the three
window_create's above?

Surely there is some way to provide more than one tty subwindow in a
frame?

Thanks,

Ron Stanonik
stanonik at nprdc.navy.mil



More information about the Comp.sys.sun mailing list