The test case attached doesn't show any linefeeds and doesn't reset the terminal before and after the call to the curses.sh script. With ncurses 5.3 and 5.4, after pressing a key once: $ ./curses line one line two line three line four press any key... With ncurses 5.2, after pressing a key once: $ ./curses line one line two line three line four press any key...
Created attachment 107172 [details] curses.c
Created attachment 107173 [details] curses.sh
Note: ncurses 5.2 is available on RHEL 2.1, 5.3 on RHEL 3, 5.4 on RHEL 4 beta.
The test-case gives me the same result (will investigate).
I put a fix in tonight's changes for ncurses (20041127).
Thomas, would you be able to point us to a patch, or a way to get a CVS access to backport this patch to 5.2?
The patch is in ftp://invisible-island.net/ncurses/5.4 (ncurses-5.4-20041127.patch.gz). Outside of the chunks for the configure script and test-program, the remainder is the pieces you would need for just this change (the pieces under the ncurses directory). It's not a large change - I added an entrypoint _nc_setupterm, which is now called directly from tgetent.
At this point, that patch file isn't on my ftp site; it's combined into the rollup patch. (I can supply a copy of the cited patch if there's interest - generally I remove all of the weekly patches after a rollup).
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-163.html