Event rings


This is a new concept I am thinking of to enhance interface-consistency for KGI. This is not yet implemented and we are not sure if it ever will be. It is there for you to have a look at it and send me comments about it.

We should think about changing the core-design to go toward something like " Focus = ring of Event-Handlers".
I think it would unify and simplify many things.
Of course this is an issue to be addressed after the Linux Congress, as you should "never change a running system" ...

The idea is about the following :

The common Linux-Console would be represented by a FOCUS to which the following DEVICES/PARSERS are attached :

The Point about all this is that _everything_ works "the same way".
For example pressing a key will result in :

A nice effect of this scheme is, that you can simply switch /dev/tty[xx] to "transparent-mode" and you will see everything that happens. I.e. you can see Mouse-movement,Joystick button-press, ... all with only one device.

On the other hand :
The XTERM Parser can use Mouse-Events itself and send the appropriate ESC-Sequences.

If you want to see "all and everything", you open /dev/tty and set it to transparent mode.

FOKUS-CHANGE is a quite natural process, then :
The requester (which will be LOADKEYS in the normal case, but it could be asked for by an ioctl to /dev/tty, too (chvt x)) sends NEW_FOKUS to the corresponding FOKUS-Event-QUEUE.
All devices attached there will take appropriate action :

I think you can do a lot of funny-to-useful things with that scheme :

O.K. - so much to it ... please comment on it !


Send comments to : Andreas Beck, mailto:becka@sunserver1.rz.uni-duesseldorf.de