From: | Allan Odgaard |
Date: | 09 Dec 99 at 02:01:48 |
Subject: | Re: Reading keypresses |
From: Allan Odgaard <Duff@DIKU.DK>
On 08-Dec-99, Donald W Millican wrote:
> I thought I could read Space as:
> case ` `:
> printf("Space entered");
> and Return / Enter as:
> case `\n`:
> printf("Return / Enter entered");
I think return is sent as '\r' (13, 0x0C) - I don't know why your space check
should fail...
You probably want to add something like this for testing:
default:
printf("Key: 0x%02x, qual: 0x%08lx\n", imsg->Code, imsg->Qualifier);
break;
Regards Allan