From owner-freebsd-emulation Sun Dec 29 10:37:52 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA07308 for emulation-outgoing; Sun, 29 Dec 1996 10:37:52 -0800 (PST) Received: from deceased.hb.north.de (deceased.hb.north.de [194.94.232.249]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id KAA07249 for ; Sun, 29 Dec 1996 10:36:45 -0800 (PST) Received: from jelal.hb.north.de by deceased.hb.north.de with uucp (Smail3.2) id m0veQ5a-0016FGC; Sun, 29 Dec 1996 19:36:02 +0100 (MET) Received: by jelal.hb.north.de (SMail-ST 0.95gcc/2.5+) id AA00245; Sun, 29 Dec 1996 18:28:30 +0100 (CET) Received: (from nox@localhost) by saturn.hb.north.de (8.7.5/8.7.3) id SAA01064; Sun, 29 Dec 1996 18:24:31 +0100 (MET) From: Juergen Lock Message-Id: <199612291724.SAA01064@saturn.hb.north.de> Subject: Re: Chistmas-edition PC-Emu To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Sun, 29 Dec 1996 18:24:30 +0100 (MET) Cc: emulation@freebsd.org, luigi@labinfo.iet.unipi.it, babkin@hq.icb.chel.su In-Reply-To: <199612200739.SAA07816@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Dec 20, 96 06:09:22 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Michael Smith writes: > ftp://gsoft.com.au/pub/pcemu1.93pre.tar.gz Here is a little patch that gets the hex keymap working again. Index: main.c @@ -101,13 +101,13 @@ static char * set_keymap(char *buf) { - char c; + unsigned char c; int code, chx; if(sscanf(buf, "%i=%c", &code, &c) != 2) return "usage: keymap code=char"; /* handle 0x... (== hex) */ - if(c == '0' && sscanf(buf, " %*s %*i=%i", &chx) == 1) + if(c == '0' && sscanf(buf, "%*i=%i", &chx) == 1) c = chx; if(c < ' ' || c >= ' ' + sizeof scan_table1) cheers Juergen