[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: major problem with trivial piece of code
From: |
Thomas Dickey |
Subject: |
RE: major problem with trivial piece of code |
Date: |
Fri, 30 Jan 2004 19:09:28 -0500 (EST) |
On Sat, 31 Jan 2004, Folkert van Heusden wrote:
> > > Yes, not only that, it also doesn't print the rest of the string!
> > > For example:
> > > char *test = { 'H', 'e', 'l', 'l', 'o', '\n', 0x00 };
> > > wprintw(stdscr, "%s", test);
> > > won't display anything at all, not even the "Hello".
> > I'll check & see if something is broken (thanks).
>
> I also tried a for loop which would emit char by char to the screen and
> for each of them a refresh(); to no avail.
> I'm using ncurses 5.3.20030719-4.
For an example, I modified test/color_set.c to use
wprintw(stdscr, ...)
rather than
printw(...)
and see no problem with this. Perhaps it is related to locale or
something that I'm not looking at.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net