tech-userlevel archive

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

Re: Detecting keypress on console



    Date:        Thu, 28 Mar 2019 03:44:32 +0100
    From:        manu%netbsd.org@localhost (Emmanuel Dreyfus)
    Message-ID:  <1o54q7j.12nkmgacatowxM%manu%netbsd.org@localhost>

  | Would it make sense to add a knote in wscons for keypresses, so that
  | they can be readen using kevent?

If modifying wscons is an acceptable solution, then it would make more
sense to allow it to ignore certain key combinations (anything from a
single key, to a key combination (ctl-shift-F3 or whatever) or even
a (time limited) key sequence - and pass those to a different minor
device, which would have filtering available on each open so only those
particular key (combinations/sequences) of interest are passed back to
the application opening this new minor dev.  The key (combo/seqs) wanted
by the new minor device would be those that beccome unavailable to
the regular tty interface.   (Aside, note that F1 without ctrl/shift/alt
is also a combination - the modifier keys need to be up/down/don't care,
and all keys should be able to be modifier keys)

kre

kre



Home | Main Index | Thread Index | Old Index