[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Addch() eats spaces and tabs on the last line of a window
From: |
Thomas Dickey |
Subject: |
Re: Addch() eats spaces and tabs on the last line of a window |
Date: |
Wed, 1 Apr 2009 20:10:58 -0400 (EDT) |
On Wed, 1 Apr 2009, karim hamidou wrote:
Hi,
I'm writing a text editor using ncurses and I use addch() to print
text to the edition window. My problem is that addch() eats the spaces
and tabs on the last line of the window in a desperate effort to make
everything fit in the window.
The code does use spaces to emulate tabs on the last line of a window.
(doesn't sound like what you're talking about).
Perhaps not specifically tabs and spaces, but running into the lower-right
corner of the window.
I suppose that it also makes the window "unscrollable".
man scrollok (by default, windows don't scroll)
Is this a bug and/or is there a workaround ?
ps: I'm using ncurses 5.6.20071124
I did make a fix related to wrapping of multibyte characters a few months
ago (different symptoms), but bugs in this area aren't that common.
more details about the program might help me guess...
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net