On 4/17/06, Michael Hudson <[EMAIL PROTECTED]> wrote:
>
> I think this has to do with your terminal emulator more than anything.
> Try it in an xterm (if you have x11 installed...).

I think you're right that it is to do with the terminal emulation. 
Results of some quick testing (on Tiger):

F1-4 do not work correctly.
F5-8 and F13 work correctly in both xterm and Terminal.app

Meta keys are correctly reported in xterm.  (using Alt/option as meta).

This is where it gets interesting.

In Terminal.app if "Use Option Key as Meta key" is selected in the
window settings dialog, it actually seems to become impossible to type
any meta chars at all. On my system these keypresses seem to become
just normal character keys.

If "Use Option as Meta Key" is not selected, option-keypress produces
strange results.  The interesting thing is that these are identical to
using the Apple- key as a modifier under X11.

>From which I think we conclude that the terminal emulation is a
strange mess.  :-)

The only real oddity is that when "option" is supposed to be acting as
a meta key python/curses doesn't seem to see that it is being pressed
at all.  But this could well be yet another emulator bug. :-)

Best, N.
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to