[comp.unix.ultrix] Curses strangeness onUltrix 4.1

rjh@udev.cdc.com (rick huebsch x-3544) (05/24/91)

The following program exhibits the strange behavior of curses I have
been seeing on a Dec3100 running ULTRIX V4.1.   Hiliting and inverse
video don't seem to be working correctly when the backspace key and
space bar are used in combination with standout mode.  The same program
on other machines (changing the cursesX to curses) doesn't have 
this problem.

Please respond via e-mail since I don't normally read this group.

=====================================================
/*
 *  curse.c ---  compile with  cc curse.c -o curse -lcursesX
 */

#include <cursesX.h>

int
main()
{
	int  temp;

	win_on();
	move(10,10);
	refresh();
	while(1){
		temp=wgetch(stdscr);
		if (temp=='q') 
			break;
		standout();
		addch(temp);	
		standend();
		refresh();
	}
	win_off();
}


win_on()
{
	initscr();
	savetty();
	box(stdscr,0,0);
	cbreak();
	crmode();
	noecho();
	nonl();
	refresh();
}

win_off()
{
	nocbreak();
	nl();
	echo();
	erase();
	clear();
	resetty();
	endwin();
}

=====================================================

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rick Huebsch                  E-mail:  rjh@udev.cdc.com
Control Data Corporation      AT&T:    (612) 482-3544