Re: [gtk-list] how can a GTK application deal with real-time serial port input?

Eric Smith writes:

> Or is there some other clever way to do this that I've overlooked?  Any
> suggestions will be appreciated.

gdk_input_add() will allow you to register a callback to run when a descriptor
becomes read/writeable. It's implemented with select().

James Bailie

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