SCO 2.3 curses bug 2

Fred Fish fnf at estinc.UUCP
Thu Mar 30 03:42:32 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.
 *	There is garbage standout "blanks" left at the end of a line.
 *
 *	Compile as "cc -o cursesbug2 cursesbug2.c -lcurses"
 *
 *	Note that you have to have the environment variable
 *	TERM=ansi (the default) and the length of the strings
 *	is significant.
 *
 */

#include <curses.h>

main ()
{
	initscr ();
	move (0,3);
	standout ();
	printw ("this is standout!");
	standend ();
	move (0,30);
	printw ("this is just a normal run of text..");
	refresh ();
	erase ();
	move (0,3);
	standout ();
	printw ("standout again!");
	standend ();
	move (0,30);
	printw ("note the garbage standout at end of line");
	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