bug-ncurses
[Top][All Lists]
Advanced

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

Re: Suppressed blanks


From: Thomas Dickey
Subject: Re: Suppressed blanks
Date: Tue, 23 Mar 2004 06:32:31 -0500 (EST)

On Mon, 22 Mar 2004, Kevin Frick wrote:

> I'm new to ncurses and have been toying with the
> library under Linux. I was wondering if someone could
> point me in a direction that might help me explain and
> fix the behavior I'm seeing. When ever I do any kind
> of display output to a window, blanks are sometimes
> suppressed if they immediately proceed a numeric
> digit. Thus the line:
>
> mvwprintw(win, 1, 0, "%10d %10d %10d\n", a, b, c);
>
> when a=13, b=26, c= 755 would look like

I tried a simple test program that did just this, but don't see a problem.
Can you reproduce this with a short test-program, or only as part of a
larger program?

I don't recall a bug/fix that would be related to this.

> I'm using the 5.2 version of ncurses library on a 2.4
> based Linux kernel. I've set the terminal emulator
> session to VT100 and ANSI with the same results. Any
> help is greatly appreciated.

5.2 is a little old, but should not be an issue.  If I were looking for
a problem with this, I'd first try making a short test-program to
illustrate the problem.  If that doesn't show it, it's more work to
isolate.  It might be some uninitialized data in your program; valgrind
is useful for finding those.  Or it might be some odd usage of the library
which for instance sets the background character (bkgd, bkgdset) to a
null - though iirc ncurses "always" treats that as a space.  Linking
with the debug version of ncurses (libncurses_g) and turning on tracing
(export NCURSES_TRACE=0x224) can capture useful information for analyzing
it.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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