barnett@grymoire.crd.ge.com (Bruce Barnett) (11/08/90)
I have a TERMSW application running in a text subwindow. When this application dies, I want to restart the application. I already have defined the notify_set_wait3_func, but I am unsure how to restart the terminal application. Do I execute window_main_loop() again? Ideally I want to pop up a window that has the command line in an editable field, and provide the user a chance to quit, restart, or edit/execute a new command. Any suggestions? -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett
barnett@grymoire.crd.ge.com (Bruce Barnett) (11/13/90)
In article <BARNETT.90Nov7135623@grymoire.crd.ge.com> I wrote: > I have a [Xview] TERMSW application running in a text subwindow. When this > application dies, I want to restart the application. I didn't get any responses to my first posting. The only way I can see to do this is to create the process with TTY_ARGV, TTY_ARGV_DO_NOT_FORK, and then use dup2((int)xv_get(t_sw, TTY_TTY_FD), 0); dup2((int)xv_get(t_sw, TTY_TTY_FD), 1); initscr(); /* curses */ and compile the program with the curses library. I would then have to fork/attach the process myself. Is this the way to do it? Yuck! -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett