Re: Monitoring IO



On Wed, Dec 06, 2000 at 09:03:45PM +0100, Julien Schmitt wrote:

I'm writing a program like Hyperterminal to monitor serial
ports,

Me too.

I first used the gtk_input_add() function (not
add_full), but now I use a GIOChannel, here is my code :

I'm using gtk_input_add() also.  What are the advantages of
using GIOChannel?  I'm not sure if the GIO stuff is available
in Python, but if there's a significant advantage, I'll try to
find out...

I write the data to a text widget much as you do.  Do you just
let it accumulate forever, or do you limit the amount of
"scrollback" available somehow.   At 115k baud, you can
accumulate 10K bytes/second, and after a while, it starts to
add up.

-- 
Grant Edwards
grante visi com




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