bug-ncurses
[Top][All Lists]
Advanced

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

wide chars functions don't work


From: Gerhard Häring
Subject: wide chars functions don't work
Date: Sat, 16 Feb 2002 10:48:20 +0100
User-agent: Mutt/1.5.0i

Hello,

I begin to wonder if anybody ever has actually used the wide character
functions in ncurses ...

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();
    curs_set(0);

    getch();
    
    addwstr(L"hallo");
    refresh();
    getch();

    curs_set(1);
    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.

(In the end, I want to use these functions from Python)

Is this a bug?

Gerhard

PS: This seems to be somewhat broken on plain Solaris curses, too.
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



reply via email to

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