Re: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1

From: Andries Brouwer (aebr@win.tue.nl)
Date: Wed May 14 2003 - 21:44:17 EST


On Wed, May 14, 2003 at 11:19:59PM +0100, James Simmons wrote:

> P.S
> KDGKBDTYPE. (Wow, I can't believe we still have this. It should die)

It is rather useless for determining keyboard proterties, yes.
On the other hand, quite a few utilities use it in code like

static int
is_a_console(int fd) {
    char arg;

    arg = 0;
    return (ioctl(fd, KDGKBTYPE, &arg) == 0
            && ((arg == KB_101) || (arg == KB_84)));
}

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:55 EST