Path: utzoo!attcan!uunet!ednor.bbc.com!cgf From: cgf@ednor.bbc.com (Chris Faylor) Newsgroups: comp.sys.hp Subject: Curses problems under HP-UX 7.0 Message-ID: <1990Oct9.201958.2085@ednor.bbc.com> Date: 9 Oct 90 20:19:58 GMT Sender: cgf@ednor.bbc.com (Chris Faylor) Organization: Boston Business Computing, Ltd.; Andover, MA Lines: 43 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 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.