Re: Mac fkeys
Re: Mac fkeys
- Subject: Re: Mac fkeys
- From: Steve Checkoway <email@hidden>
- Date: Sat, 28 Oct 2006 11:45:04 -0700
On Oct 28, 2006, at 11:16 AM, Laurence Harris wrote:
On Oct 28, 2006, at 1:54 PM, Steve Checkoway wrote:
Also, what keycode does the large "delete" key return? Looking
now at
the curs_getch(3X) man page, it's not KEY_DC and it's not
KEY_BACKSPACE.
Anyone know?
I'm not familiar with KEY_BACKSPACE, but I have the following in
one of my headers:
const UInt32 kKeyCode_Backspace = 0x00000033;
I'm not sure what this has to do with curses. I'm quite sure none of
its headers use UInt32.
Looking at some code I wrote a few years ago, it looks like it
sends 0x7f which should be del as defined by ascii.
That would be the character code, not the key code.
My code calls keypad(gInputWindow, true) and then uses wgetch
(gInputWindow) which returns 0x7f as I said before. The code in
question looks like:
switch( wgetch(gInputWindow) )
{
/* ... */
case KEY_DC:
HandleDelete(false);
break;
case KEY_BACKSPACE:
case 0x7f:
HandleDelete(true);
break;
/* ... */
}
where, without really looking, I'm assuming true is for a backward
delete and false is for a forward delete in my code.
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden