[comp.sys.hp] Curses problems under HP-UX 7.0

cgf@ednor.bbc.com (Chris Faylor) (10/10/90)

Has anyone else noticed what appears to be a severe bug using curses under
HP-UX 7.0?  The following C code illustrates the problem:

#include <curses.h>

main()
{
initscr();
printw("abcdefg");
refresh();
mvprintw(0, 0, "Zabcdefg");
refresh();
endwin();
}

-----------

On a VT3xx or HP terminal (i.e., terminals for which "has_ic()" is true)
after the program exits the screen will display:

Zabcdefg

On a VT100 or any terminal which does not have "insert character" capabilities
the screen will display:

Zbcdefg

Which is obviously wrong, right?

-----------

Just to stem a wave of "Don't use curses, it is a piece of ..." I'd like
to add that I don't have much choice in the matter.  This is for software
that will eventually run on 30+ different platforms.  It's screen handling
is simple enough that curses SHOULD BE adequate and I'd rather not have
to lug around some other screen manipulation package from machine to machine.

Any insight anyone can offer about this would be most appreciated.
-- 
Chris Faylor		Boston Business Computing, Ltd.
cgf@ednor.bbc.com	President: Anti Usenet-Obsessive-Behavior Society

The opinions expressed here just might represent the opinions of this company.