bug-ncurses
[Top][All Lists]
Advanced

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

Re: wide chars functions don't work


From: Thomas Dickey
Subject: Re: wide chars functions don't work
Date: Sat, 16 Feb 2002 08:13:16 -0500
User-agent: Mutt/1.2.5i

On Sat, Feb 16, 2002 at 10:48:20AM +0100, Gerhard H?ring wrote:
> Hello,
> 
> I begin to wonder if anybody ever has actually used the wide character
> functions in ncurses ...

a few
 
> I have found zero actual code using them. This is what I've tried:
> 
> #include "ncursesw/ncurses.h"
> 
> int main(int argc, char *argv[]) {
>     initscr();
      normally I expect to see a raw or cbreak call here

>     curs_set(0);
> 
>     getch();
>     
>     addwstr(L"hallo");
      and this is the bug you're reporting (sorry about that).
      It looks as if Skimo's got a patch already.

>     refresh();
>     getch();
> 
>     curs_set(1);
      this call isn't needed btw...

>     endwin();
> 
>     return 0;
> }
> 
> Now, are these functions actually implemented in ncurses? As far as I
> can see in ddd, the wstr functions/macros keep calling themselves
> recursively.

mea culpa (in context, this happens if I overlook some of the definitions
needed to make lib_gen.c build properly).
 
> (In the end, I want to use these functions from Python)
> 
> Is this a bug?

that's what is known as a rhetorical question...
 
-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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