On Sun, May 31, 2009 at 02:30:54PM EDT, Arnaud Delobelle wrote:
> Chris Jones writes:
> [...]
> > Try this:
> >
> > #include
> > #include
> > #include
> > #include
> > #include
>
> /* Here I need to add the following include to get wint_t on macOS X*/
>
> #include
Ah.. interesting. My p
Chris Jones writes:
[...]
> Try this:
>
> #include
> #include
> #include
> #include
> #include
/* Here I need to add the following include to get wint_t on macOS X*/
#include
>
> int ct;
> wint_t unichar;
>
> int main(int argc, char *argv[])
> {
> setlocale(LC_ALL, "");
On Sun, May 31, 2009 at 04:05:20AM EDT, Arnaud Delobelle wrote:
[..]
> Thanks for this. When I test it on my machine (BTW it is MacOS 10.5.7),
> if I type an ASCII character (e.g. 'A'), I get its ASCII code (0x41),
> but if I type a non-ascii character (e.g. 'ยง') I get back to the prompt
> immed
Chris Jones writes:
Hi Chris, thanks for your detailed reply.
> On Sat, May 30, 2009 at 04:55:19PM EDT, Arnaud Delobelle wrote:
>
>> Hi all,
>
> Disclaimer: I am not familiar with the curses python implementation and
> I'm neither an ncurses nor a "unicode" expert by a long shot.
>
> :-)
>
>> I
On Sat, May 30, 2009 at 04:55:19PM EDT, Arnaud Delobelle wrote:
> Hi all,
Disclaimer: I am not familiar with the curses python implementation and
I'm neither an ncurses nor a "unicode" expert by a long shot.
:-)
> I am looking for advice on how to use unicode with curses. First I will
> explai
Arnaud Delobelle writes:
[...]
> I can pipe the stream of output from getch() directly through an
^^^ I mean *can't*
> instance of codecs.getreader('utf-8') because getch() sometimes returns
> the integer values of the 'special keys'.
[...]
I reread my post 3 times before sending it, honest!