Re: Mac fkeys
Re: Mac fkeys
- Subject: Re: Mac fkeys
- From: Steve Checkoway <email@hidden>
- Date: Sat, 28 Oct 2006 16:28:06 -0700
On Oct 28, 2006, at 2:42 PM, Alastair Houghton wrote:
On Oct 28, 2006, at 9:15 PM, Greg Berchin wrote:
Steve Checkoway <email@hidden> wrote:
What _do_ those keys do? I've been reading this thread and the only
fkeys of mine that do anything are f10-f12 which I've mapped to
apple
scripts (or something, it's been a while) to control iTunes.
I use F5-F13 for actual parameter changes. I can't use F1-F4 because
the system intercepts them and crashes my program.
My code (which admittedly I haven't touched in a while) prints out ^
[OP for F1, ^[OR for F3 and ^[OS for F4. F2 prints nothing. I'm sure
there's some way to handle these but I never really cared that much
to dig too deeply into it.
Looking at some code I wrote a few years ago, it looks like it
sends
0x7f which should be del as defined by ascii.
7F did it! Thanks. Where on earth did you find this info? I
checked
everywhere I could think of, including Google.
As Steve Checkoway rightly pointed out, 0x7f is ASCII DEL, which
makes a
lot of sense for a delete key.
Now I think about it, I think delete keys returning 0x7f is pretty
standard
terminal behaviour, and possibly the reason you couldn't find
documentation
is that it's just assumed that you realise that this will happen?
I don't think it's really reasonable to assume that would happen.
There is already a KEY_BACKSPACE. I just used getch and printed out
the values returned.
--
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