[kbd] New vt_mode tool for kbd?

Michael Schutte michi at uiae.at
Mon Mar 21 21:42:36 UTC 2011


Hi Alexey,

The console-setup package in Debian needs a way to check for the
text/graphics mode of the active VT (from a shell script).  This can be
done with “setfont -v -o /dev/null”, for example, but that isn’t very
elegant.  Julien Cristau has proposed a small utility (which I’m calling
“vt_mode” for now) to report this information in a canonical fashion.

I’ve adapted it to kbd; see attachment.  Do you think this code is
suitable for inclusion?  If so, I am going to integrate it into the
build system and write a short man page for it, so I can send you a
proper patch.  I’d like to hear your opinion!

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vt_mode.c
Type: text/x-csrc
Size: 1902 bytes
Desc: not available
URL: <http://lists.altlinux.org/pipermail/kbd/attachments/20110321/17589b56/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.altlinux.org/pipermail/kbd/attachments/20110321/17589b56/attachment-0001.bin>


More information about the kbd mailing list