[Urwid] urwid_simple.py problem
Ian Ward
ian at excess.org
Sat Jun 3 12:20:58 EDT 2006
James Mills wrote:
> Hi,
>
> The "urwid_simple.py" that was posted to this list a while
> ago (see attached) I'm having problems with.
>
> I know it's taken me a while :) (lack of time), however I
> believe my terminal is translating keycodes for ALT or META
> to something else. If I chuck a print keys I get:
> ['\xf0'] when I press ALT + F for instance, instead of
> what urwid_simple is looking for "meta f" in keys.
>
> Comments ?
Hmm. I should put this question in a FAQ.
If you're running xterm you can set "Meta Sends Escape" in the
"CTRL+Left Click" menu. To set it permanently for your user add this
line to your $HOME/.Xdefaults file:
XTerm*metaSendsEscape: true
Then run: "xrdb -l $HOME/.Xdefaults" to reload your xresources.
Or, see the attached message for a solution that will break input in all
encodings that use > 7 bits, but will understand what your terminal is
sending.
Ian
-------------- next part --------------
An embedded message was scrubbed...
From: Ian Ward <ian at excess.org>
Subject: Re: [Urwid] Problem with Alt/Meta key
Date: Sat, 06 May 2006 10:37:21 -0400
Size: 1681
Url: http://lists.excess.org/pipermail/urwid/attachments/20060603/104b131d/AttachedMessage.mht
More information about the Urwid
mailing list