On Tue, 31 Jul 2001 10:06:34 CDT, Bach Ngo said:
> fd_kb is a file descriptor, e.g.
> fd_kb = open("/dev/tty", O_RDWR);
> On Tue, 31 Jul 2001, Bach Ngo wrote:
> gdk_input_add(fd_kb,GDK_INPUT_READ,GTK_SIGNAL_FUNC(keyboard_input),text_entr
> > y[5]);
I'd be surprised if this worked - /dev/tty is almost *certainly* not
connected to keyboard events for an X program (in fact, for an Xterm,
the program is catching X events and writing appropriate characters into
a pseudo-terminal that is being read by your shell or whatever at the
other end).
Unless of course it's a total dummy parameter - in which case I have to
wonder why it's being passed at all in the API?
--
Valdis Kletnieks
Operating Systems Analyst
Virginia Tech
Attachment:
pgpm4fqYQVXLG.pgp
Description: PGP signature