From owner-freebsd-hackers Thu Oct 30 01:45:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA28416 for hackers-outgoing; Thu, 30 Oct 1997 01:45:47 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from bootp.sls.usu.edu (bootp.sls.usu.edu [129.123.15.47]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA28411 for ; Thu, 30 Oct 1997 01:45:43 -0800 (PST) (envelope-from kurto@bootp.sls.usu.edu) Received: (from kurto@localhost) by bootp.sls.usu.edu (8.8.2/8.8.2) id CAA25047 for freebsd-hackers@FreeBSD.ORG; Thu, 30 Oct 1997 02:45:37 -0700 (MST) Date: Thu, 30 Oct 1997 02:45:37 -0700 (MST) From: Kurt Olsen Message-Id: <199710300945.CAA25047@bootp.sls.usu.edu> To: freebsd-hackers@FreeBSD.ORG Subject: libvgl problems? Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I was playing with libvgl this evening and found a rather disturbing bug. On my particular keyboard the VGLKeyboardGetCh() call doesn't return anything for the make code on the occurance of a 'u' or TAB. I get the break codes all right but not the make codes. Anybody else seen this? I get the same behavior under CODEKEYS and RAWKEYS. Here's a short program I wrote to check out which codes were returned for which keys, as a side effect it demonstrates this problem nicely. Kurt Olsen kurto@bootp.sls.usu.edu #include #include #include void main(void) { int i,j,k; VGLInit(M_C80x25); #if 1 VGLKeyboardInit(VGL_CODEKEYS); #else VGLKeyboardInit(VGL_RAWKEYS); #endif for (i=0; i < 500000; i++) { j = VGLKeyboardGetCh(); if (j>0) printf("%c%c%02x", 0xd, 0xa, j); else if (k > 100000) { printf(".",j); k=0; fflush(stdout);} k++; } VGLKeyboardEnd(); VGLEnd(); }