Re: attempting to open a VT from elsewhere and take raw keyboardinput

From: Jan Engelhardt
Date: Wed Jul 18 2007 - 03:49:25 EST



On Jul 17 2007 22:01, Shawn Rutledge wrote:
> Yes I know that X does it; I'm trying to write a new windowing system
> which also does that, and the question is how they did it. I would
> have expected if I just open /dev/tty1, set raw mode, and set some
> termios flags I'd get every key press and release; and it would be my
> choice whether to use blocking or non-blocking I/O.

Why, look at the Xorg source code.


Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/