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

Bug#614127: Bug#618573: Needed some way to test whether we are on the console



Hey,

On Thu, Mar 17, 2011 at 08:57:15PM +0100, Julien Cristau wrote:
> Sure, go ahead.  Note that Samuel Thibault suggested setupcon should use
> the KDGKBMODE ioctl and check for K_RAW instead of KDGETMODE and check
> for KD_GRAPHICS; the code change is trivial.  See
> http://lists.debian.org/20110226002401.GG7418@const.famille.thibault.fr

Thanks for your quick response.  I think your original code could still
come in useful from time to time.

On #614127: Unless I’m missing something, you can already use kbd_mode
(without an argument) for this purpose.  The output could be a little
more canonical, but a grep for "scancode" should do the job.

All the best,
-- 
Michael Schutte                   | michi@{uiae.at,debian.org}
Innsbruck, Austria                | happily accepting encrypted mail
OpenPGP: 0x16fb 517b a866 c3f6 8f11 1485 f3e4 122f 1D8C 261A

Attachment: signature.asc
Description: Digital signature


Reply to: