From owner-freebsd-questions Mon Sep 18 22: 0: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id C669337B424 for ; Mon, 18 Sep 2000 22:00:03 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id JAA08769 for ; Tue, 19 Sep 2000 09:17:45 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e8J4xwH29874 for freebsd-questions@freebsd.org; Tue, 19 Sep 2000 08:59:58 +0400 Date: Tue, 19 Sep 2000 08:59:58 +0400 From: Igor Roboul To: FreeBSD questions Subject: Re: Scancodes Message-ID: <20000919085958.D29692@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: FreeBSD questions References: <14788.64324.182859.281352@guru.mired.org> <01b201c02191$33db2bb0$8d0336d5@gottt> <20000918175616.C567@parish> <030c01c021ba$06adeff0$8d0336d5@gottt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <030c01c021ba$06adeff0$8d0336d5@gottt>; from list@rachinsky.de on Mon, Sep 18, 2000 at 11:46:31PM +0200 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Sep 18, 2000 at 11:46:31PM +0200, Nicolas wrote: > Is there any tool to show me which scancode is produced by which key? If you have access to MS-DOS then this simple program will give you scancodes. main() { char k; while( (k=inportb(0x60))!=1 ) { printf("%d\n",k); } } You need DOS C compiler (and maybe you need replace inportb with inport) After you'll press ESC (scan code 1) program will terminate. -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message