[kbd] New vt_mode tool for kbd?

Alexey Gladkov gladkov.alexey at gmail.com
Mon Mar 28 11:26:16 UTC 2011


28.03.2011 15:19, Dmitry V. Levin wrote:
> Usage: kbdinfo [-C DEVICE] getmode [text|graphics]
>        kbdinfo [-C DEVICE] gkbmode [raw|xlate|mediumraw|unicode]
>        kbdinfo [-C DEVICE] gkbmeta [metabit|escprefix]
> 
> If only one argument is given, then just print the current mode to stdout
> and exit 0 (unless ioctls returned an error).
> 
> If two arguments are given, then print nothing to stdout and exit 0 iff
> the current mode matches the mode described by these two arguments.
> 
> This interface would be both script-friendly and extensible.

This is very good idea. Thanks!

-- 
Rgrds, legion



More information about the kbd mailing list