From: Steffen S. <s.s...@ph...> - 2000-06-09 07:33:53
|
James Simmons wrote: > > How X-server finds this? I'm using right-ctrl & right-alt & fX to > > switch to tty13..25, but X server currently completely ignores it. > > Since the X server puts the VT into cooked mode the X server does't knwo > what right-ctrl & right-alt & fX means. It just reads the keyboard and > when it sees it it send a signal to the kernel to tell it to do a VT > switch. If you want your X server to VT switch to tty13..25 you have to > reprogram your X server :( Been there, done that, got the T-shirt. This is not really correct. KGI emulates the console switching procedure of standard Linux kernel if no fully-fledged driver is loaded. Console switching events get sent through to applications also in raw mode (as in raw mode cooked events get filtered by the KGI-tty driver, and only raw events are handed on, just the oposite to cooked mode). This is binary compatible with all applications using this scheme, the only annoying 'feature' being that <ALT>-<Fxx> works too for switching consoles from X, and thus takes these combinations from applications. One should use <CTRL>-<ALT>-<Fxx> on the console just as X does, but this requires changing all the keymaps and documentation... On another note, I think you should definately not change the semantics of the console switching behaviour. This is used by other operating systems too, so if you break this, you will make Linux incompatible with quite some applications. (See the VT-switch handling code in the X server, as a reference). Greetings, Steffen _______________________________________________________________________________ Steffen Seeger mailto:se...@ph... |