X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: daneicher99 AT hotmail DOT com (Dan Eicher) Newsgroups: comp.os.msdos.djgpp Subject: Re: How do I add keys to keys.h Date: 10 Mar 2004 10:36:44 -0800 Organization: http://groups.google.com Lines: 30 Message-ID: References: NNTP-Posting-Host: 192.42.92.28 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078943805 22678 127.0.0.1 (10 Mar 2004 18:36:45 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 10 Mar 2004 18:36:45 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks for the information, but I am dumber than the average bear and can't figure out how to detect this. I do have code, get a key, print the numeric representation: ie int ch; ch=getxkey(); printf("%x",ch); this works with "normal" keys, but I can't get anything with ctrl-1, ctrl-2, ctrl-3 etc... if you could post some code, I'd apreciate it! Thanks, d. Hans-Bernhard Broeker wrote in message news:... > Dan Eicher wrote: > > I would like to add CTRL-1, CTRL-2 etc... (for use with getxkey) > > Is this possible? > > Sure, but are you sure it's necessary? Ctrl-1 will be '1' & (~0x20), > so why can't you just test for it that way?