[Top][All Lists]

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

Events in libcons

From: Marco Gerards
Subject: Events in libcons
Date: Fri, 02 Apr 2004 18:27:03 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)


In libcons there are various events: keypresses, output to the
display, bell events.  When it gets mouse support it will also have
mouse events like mouse movement and mouse button presses.

I want to make it configurable when the mouse cursor is shown
(normally when the mouse is moved) and when it is hidden (normally
when a key is pressed).  An example is when to show the cursor:

      --mouse-show=EVENTS    One or more of the events MOUSEMOVE, MOUSEBUTTON,
                             KEYPRESS, OUTPUT (default is MOUSEMOVE), if one of
                             these events occur the mouse cursor will be made

So the user can use --mouse-show=MOUSEBUTTON to show the cursor, or
multiple like --mouse-show=MOUSEBUTTON,MOUSEMOVE.  The --mouse-hide
arguments works just the same.

I have noticed that some other arguments, like `--jump-down-on-input',
`--no-jump-down-on-input', `--jump-down-on-output' and
`--no-jump-down-on-output' can work just the same.  For example

The same can be done for the screensaver.  This way there will be a
uniform and central way to control how the screensaver will be

I am still thinking what will be the cleanest way to handle this for
the screensaver.  Should the console client implement a
cons_vcons_screensaver_event function that will be called on any event
bound to the screensaver?  Although I really like to hear opinions
about this, for now it matters that this works just like the other

I will implement this for libcons.  First only for the mouse, after
that for the rest of libcons.  I will also add a bell event, that will
be nice for the screensavers I think.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]