Newsgroups: comp.windows.open-look Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!nstn.ns.ca!aucs.acadiau.ca!871579l From: 871579l@aucs.AcadiaU.ca (Todd Lowe) Subject: Help needed with XView TTY windows Message-ID: <1991Mar20.030857.17629@aucs.AcadiaU.ca> Reply-To: 871579l@aucs.acadiau.ca (Todd Lowe) Organization: School of Computer Science, Acadia Univ., Nova Scotia Date: Wed, 20 Mar 91 03:08:57 GMT Lines: 52 I'm working on a project under XView 2.0, and one of the things is a tty window that output from external programs goes into. I have a few questions, but don't have any manuals only the distribution examples. (manuals are on order ...) I create a tty: frame=(Frame)xv_create(NULL,FRAME, FRAME_LABEL, "Output", XV_WIDTH, 640, XV_HEIGHT, 125, FRAME_SHOW_FOOTER, TRUE, NULL); tty = (Tty)xv_create(frame, TTY, TTY_ARGV, my_argv, NULL); where frame is the parent frame, and my_argv[]={"echo","tty",NULL"} Later I send various commands through the tty by using: xv_set(tty, TTY_ARGV, my_argv2, NULL); where my_argv2 is the new command. This all works fine, but I'd like to be able to know when the command is finished so I can change a message in the frame's footer. I'm currently trying to use wait() as I would with exec, but this only seems to work once. After that any commands for the tty are ignored. ie: xv_set(tty ...) works wait() wait's till it's done xv_set(tty ...) doesn't do a thing. I have tried using signal() after the wait, but that doesn't seem to do anything at all, and I don't think it should be there anyway. The other thing I'd like is to have a scroll bars on the tty so anything longer than the window can be reviewed/seen. Any help on these questions would be appreciated, but please remember I have no docs to reference, especially the O'Rielly books . -Todd