[comp.unix.xenix] SCO 2.3 development system curses bug

fnf@estinc.UUCP (Fred Fish) (03/27/89)

/*
 *	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

jeremy@lana.prime.com (Jeremy Nussbaum) (03/28/89)

I have tried using attroff on an SGI 4D workstation, using release
3.1 of IRIX (V.3.2 based), and had the same
problem.  I strongly suspect it is a bug in the ATT release of curses.


Jeremy Nussbaum
Prime Computer
2 Crosby Drive, MS 16-2
Bedford, Ma. 01730		(617)257-1800 x6745