[Pkg-kbd-devel] Bug#618573: Needed some way to test whether we are on the console
Michael Schutte
michi at debian.org
Fri Mar 18 09:36:01 UTC 2011
On Fri, Mar 18, 2011 at 07:56:19AM +0200, Anton Zinoviev wrote:
> Doesn't the following code do everything console-setup needs:
>
> if kbd_mode 2>/dev/null; then
> configure_the_keyboard
> if setfont -o /dev/null 2>/dev/null; then
> configure_the_font
> fi
> fi
With the adequate greps, this should be okay. If configure_the_font is
just a setfont invocation, there is no need to guard it, as “setfont -v
$font” just spits out the same warning message if it is on a graphics
console.
> If the answer is yes, then there is no need for special testing toos and
> perhaps this bug can be closed.
I’ll leave it open nonetheless. It makes sense to have some kind of
“vt_mode” command analogous to kbd_mode, rather than having to dump the
current font to /dev/null.
Cheers,
--
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: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-kbd-devel/attachments/20110318/2fdef967/attachment-0001.pgp>
More information about the Pkg-kbd-devel
mailing list