Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!tank!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.lang.c Subject: Re: Small curses test program Message-ID: <3587@cps3xx.UUCP> Date: 29 Jun 89 15:02:18 GMT References: <1173@cs.rit.edu$ Distribution: na Organization: Engineering, Michigan State U., E. Lansing MI Lines: 33 in article <1173@cs.rit.edu$, syspgm%ritcv@cs.rit.edu says: $ $ $ A while back I ran across a problem with the curses routine getstr. $ Getstr in some operating systems' implementations disables the backspace/delete $ key. I have since determined that the routine works on System V $ but does not work on Sun OS or Ultrix machines. I am curious if anyone with $ later versions of these operating systems has any luck with the following $ short program. $ $ main() $ $ { $ char line[132]; $ $ initscr(); $ getstr(line); $ printw("%s\n",line); $ refresh(); $ endwin(); $ } I suspect the problem is with Sys V using terminfo while the Berkeley flavors use termcap. For kicks, I tried the test program under SCO XENIX 386 v2.3.1. Xenxix provides both termcap and terminfo. Using terminfo, it worked fine. Using termcap, the program wouldn't work. (it started up, but didn't clear the screen, interupting out of the program, I found I needed to kill myself..) John H. Lawitzke UUCP: Work: ...uunet!frith!dale1!jhl Dale Computer Corp., R&D Home ...uunet!frith!ipecac!jhl 2367 Science Parkway Internet: jhl@frith.egr.msu.edu Okemos, MI, 48864 [35.8.8.108]