Re: [gtk-list] design comments solicited



On Thu, 16 Sep 1999 16:32:28 -0400 (EDT), nelson-gtk@crynwr.com wrote:
> I can only find one (1) X application designed to manipulate termios,
> and that's minicom.  Maybe there's others, but in the meantime, I'm

Minicom runs in a terminal, AFAIK. Don't you mean Seyon?

> going to cons up something gtk-ish.  My plan is to use a separate X
> terminal for the terminal part.  In it, I'll run a program which reads
> from stdin and writes to the serial device, and reads from the serial
> device and writes to stdout.  Does this sound like a good plan?  The
> only difficulty I forsee is shutting that program down when the main
> program is doing a data upload/download.

Hmm, I don't see the program/main program problem. Let me restate what you
want to do, so you can correct me: Your start your program in an xterm,
the program starts a GTK based gui part to control the serial port stuff
and uses the xterm as the terminal window:

             <--          -->
  /dev/ttyS* ==>  Program ==> xterm
             <==      ^   <==
                      |
                      v                   --> = control
                     GUI                  ==> = data

Now as soon as you want to download something, you start an external
download program (say zmodem), redirect some pipes to and from it and
redirect those to the terminal. If I understand it correct, your problem
is that you don't know what's going to happen with zmodem if your program
shuts down. AFAIK, zmodem will also shut down if it is in the same process
group.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2785859  Fax: +31-15-2781843  Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]