Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!bradley!vijay From: vijay@bradley.UUCP Newsgroups: comp.unix.questions Subject: Re: To curse or not to curse Message-ID: <10800025@bradley> Date: 6 Jun 89 17:24:00 GMT References: <36@iisat.UUCP> Lines: 40 Nf-ID: #R:iisat.UUCP:36:bradley:10800025:000:1517 Nf-From: bradley.UUCP!vijay Jun 6 12:24:00 1989 >Written 9:44 pm Jun 4, 1989 by jules@iisat.UUCP >/* ---------- "To curse or not to curse" ---------- */ >A friend of mine is converting some programs from Turbo Pascal 5.0 to >work in Unix C. He's having difficulty translating a Turbo Pascal >function (getch ?) which reads in a character from the keyboard unechoed, >and without waiting for a carriage return. I told him to use curses and >set cbreak() and noecho() modes. He thinks he shouldn't have to invoke >curses for such a simple task. Is there another way to do this? What >is the best, most portable way to do it? > >-- >Jules d'Entremont Phone: 454-5631 (Home) 465-5535 (Office) >Written 12:46 pm Jun 5, 1989 by kucharsk@uts.amdahl.com >Here's a program which demonstrates one way of doing things: > >#include >#include ^^^^^^^^^^^^^^^^??? > >main() >{ > ... >} Where is the file termio.h? It is not there in /usr/include. I am using UNIX 4.3 BSD Thanx =============================================================I / / E-mail: vijay@bradley.edu I / / * * ___ ...!uiucdcs!bradley!vijay I / / / / / / / / I===================================I //___/___/__/_\/__/__/ I "A duck walks in a drug store and / / I says. 'Give me a chapstick, and / / I put it on my bill!'" __/ __/ I - Judge Harry Stone, Night Court ===============================================================