Curses strangeness onUltrix 4.1
rick huebsch x-3544
rjh at udev.cdc.com
Fri May 24 23:01:35 AEST 1991
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 at udev.cdc.com
Control Data Corporation AT&T: (612) 482-3544
More information about the Comp.unix.ultrix
mailing list