lkml.org 
[lkml]   [2003]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG] 2.5.69 - no setfont and loadkeys on tty > 1
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.029 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site