Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!TALOS!jhagen From: jhagen@talos.npri.com (Jarom Hagen) Newsgroups: comp.unix.ultrix Subject: Curses on Ultrix 4.0 (RISC) Keywords: curses Message-ID: <2447@talos.npri.com> Date: 18 Jun 91 21:15:50 GMT Organization: NPRI, Alexandria VA Lines: 50 I am trying to port software that runs on System V 3.2 to Ultrix 4.0. I am having several problems with curses. 1. No support for graphics characters. 2. The routine getch() is *sometimes* returning different characters than the ones I type in. For example, the 9 may return $ when typed, the 1 may return ' ' when typed. This only happens in the software ported from system V. (It runs fine on three different System V machines) I pulled out the module that reads characters and made a little test program that just initialized curses and called the read module. That works fine. I would like to know what is going on here! 3. I sometimes get left in a funny state when the program exits. For instance, echo may be turned off or the scrolling region may be set to only a few lines. Here is how curses is setup: #include #include main() { initscr(); cbreak(); echo(); nl(); intrflush(stdscr, 0); keypad(stdscr, 1); scrollok(stdscr, 1); clearok(stdscr, 1); noecho(); terrd(&inputd, &inpwid); /* terrd eventually calls getch() */ endwin(); } Any pointers would be appreciated. Jarom -- ------------------------------------------------------------------------------- *Not paid for and/or endorsed by National Political Resources Incorporated. 602 Cameron St, Alexandria VA 22314 (UUCP: ...uunet!uupsi!npri6!jhagen)