SCO 2.3 development system curses bug
Fred Fish
fnf at estinc.UUCP
Mon Mar 27 04:55:08 AEST 1989
/*
* This little program demonstrates what I believe to be a bug
* in the SCO 2.3 development package curses library. During
* installation, the "terminfo curses" option was selected.
* The line that should be plain text comes out underlined.
*
* Note that 2.3.1 was shipped with the 2.2 development system
* so you must have upgraded to the 2.3 development system
* to get this bug.
*
* Compile as "cc -o cursesbug cursesbug.c -lcurses"
*
* Note, the order of screen painting appears to be a significant
* factor. If the lines are reordered such that painting occurs
* from top to bottom with no reverse motion, the bug goes away.
*
*/
#include <curses.h>
main ()
{
initscr ();
move (0, 0);
attron (A_UNDERLINE);
printw ("This should be underlined text.");
attroff (A_UNDERLINE);
move (2, 0);
attron (A_STANDOUT);
printw ("This should be standout text.");
attroff (A_STANDOUT);
move (1, 0);
printw ("This should be plain text (no underline or bold).");
move (1, 0);
refresh ();
endwin ();
}
--
# Fred Fish, 1835 E. Belmont Drive, Tempe, AZ 85284, USA
# 1-602-491-0048 asuvax!{nud,mcdphx}!estinc!fnf
More information about the Comp.unix.xenix
mailing list