bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent key names on OS X


From: Thomas Dickey
Subject: Re: Inconsistent key names on OS X
Date: Mon, 28 Jan 2013 21:04:46 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Jan 29, 2013 at 12:43:29AM +0000, Nicholas Cole wrote:
> Dear Thomas,
> 
> I'm using ncurses via python on OS X.  There seems to be an issue with the
> OS X terminal.
> 
> When using the X11 emulator (XQuartz) the alt key on the keyboard is
> ignored, but the command key acts as meta.  The keys are reported as one
> would expect, so that Meta-K is reported by the keyname(ch) and unctrl(ch)
> functions as "M-k" and "!k".
> 
> However, in Terminal.app (where alt appears to operate as Meta) Meta-K is
> reported as "M-^Z", or, if the preference "use option key as meta" is set,
> simply as "k".
> 
> Are these known problems with Terminal.app and curses?

It's not reported before, but unsurprising.
Most terminals treat the meta key differently from xterm.
(xterm happens to treat meta as ncurses would expect).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]