[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in multi-line fields ?
From: |
Thomas E. Dickey |
Subject: |
Re: Bug in multi-line fields ? |
Date: |
Sun, 20 Jul 2003 14:28:19 -0400 (EDT) |
On Sun, 20 Jul 2003, Thomas Graf wrote:
> Hello,
>
> There seems to be a bug in newer versions of the forms library of
> ncurses (GNU/Linux RedHat 7.3, RedHat 9, ncurses-5.3-20030719, but not
> RedHat 7.2). In a multi-line field, the content of the line before the
> last one is copied into the last one when REQ_NEXT_LINE is executed.
>
> This behaviour can be demonstated with the attached test program
> (derived from a test program distributed with ncurses):
>
> To compile the program you may use:
> # gcc -o fieldbug fieldbug.c -lform -lpanel -lncurses
>
> Run the program: this creates a 20 columns, 3 line field on the screen.
> * Type "aaa", <Enter>, "bbb". You should see:
> - "aaa" in the first line
> - "bbb" in the second line
> * Type <Enter>. You should see:
> - "aaa" in the first line
> - "bbb" in the second line
> - "bbb" in the third (= last) line.
That sounds like one that I noticed recently (but checked 5.3 and iirc,
it was broken there as well):
2003/5/7
*** c++ demo, I entered 5 lines, forcing scrolling. On the sixth, it
copied the 5th line to the new position. Solaris curses
works as expected.
thanks
--
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net