[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in multi-line fields ?
From: |
Thomas Graf |
Subject: |
Bug in multi-line fields ? |
Date: |
20 Jul 2003 20:13:45 +0200 |
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.
Best regards,
Thomas
fieldbug.c
Description: Text Data
- Bug in multi-line fields ?,
Thomas Graf <=