[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with screen redraws?
From: |
Thomas Dickey |
Subject: |
Re: problems with screen redraws? |
Date: |
Thu, 21 Oct 2004 13:57:31 -0400 (EDT) |
On Thu, 21 Oct 2004, Fairlight wrote:
> I'm having an odd problem with ncurses 5.4.
>
> I'm creating a line with sprintf() that is always the same length.
>
> I use mvwaddstr to place the line over the top of a previous line. The
> problem is that I'm doing something similar to `top`--a monitor program.
> Well, the lines occasionally get shifted over one space at the start
> position. I specify 0 and it starts at 1. I specify 1, it starts at 2.
> But only sporadically, and not all rows do it. Different rows also do
> this.
If the string is as wide as the screen and if the terminal description
regarding wrapping isn't correct, that could be a problem (guessing).
The usual suspect in this case is the terminal emulator, but I use
both screen and PuTTY frequently (but admittedly with a small range of
applications), haven't _noticed_ a problem.
PuTTY's terminfo doesn't exactly match in the area of wrapping however
(in the terminfo I use, bw is set while vt100 and xterm don't):
comparing putty to vt100.
comparing booleans.
bw: T:F.
ccc: T:F.
hs: T:F.
comparing numbers.
colors: 8:-1.
cols: -1:80.
lines: -1:24.
ncv: 22:-1.
pairs: 64:-1.
vt: -1:3.
comparing string...
There's an up-to-date entry for "putty" in
ftp://invisible-island.net/ncurses/terminfo.src.gz
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net