Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cs.dal.ca!iisat!jules From: jules@iisat.UUCP (Jules d'Entremont) Newsgroups: comp.unix.questions Subject: To curse or not to curse Keywords: curses Message-ID: <36@iisat.UUCP> Date: 5 Jun 89 02:44:05 GMT Organization: International Information Service, Dart., NS Lines: 13 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) UUCP: {uunet,utai,watmath}!dalcs!iisat!jules Bitnet/Uucp: jules@iisat.uucp Arpanet: jules%iisat.uucp@uunet.uu.net