From: Michael Brown Date: Thu, 21 Dec 2006 00:07:48 +0000 (+0000) Subject: Some BIOSes return 0xe0 for extended characters. Just assume that X-Git-Tag: mcb-xen-demo~269 X-Git-Url: http://git.etherboot.org/people/xl0/gpxe.git/commitdiff_plain/9c3b4e5b0b93b4d24dcd4a09c7bd30cd36ad83d4 Some BIOSes return 0xe0 for extended characters. Just assume that anything over 0x80 is an extended character. --- diff --git a/src/arch/i386/firmware/pcbios/bios_console.c b/src/arch/i386/firmware/pcbios/bios_console.c index 33dd2ad5..f6867edb 100644 --- a/src/arch/i386/firmware/pcbios/bios_console.c +++ b/src/arch/i386/firmware/pcbios/bios_console.c @@ -249,7 +249,7 @@ static int bios_getchar ( void ) { character = ( keypress & 0xff ); /* If it's a normal character, just return it */ - if ( character ) + if ( character < 0x80 ) return character; /* Otherwise, check for a special key that we know about */