Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!convex!usenet From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.lang.c Subject: Re: getchar() Message-ID: <1991Mar08.035324.24080@convex.com> Date: 8 Mar 91 03:53:24 GMT References: <1991Mar5.063644.8459@cs.mcgill.ca> <5383@male.EBay.Sun.COM> <3783@island.COM> Sender: usenet@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Organization: CONVEX Software Development, Richardson, TX Lines: 15 Nntp-Posting-Host: pixel.convex.com From the keyboard of daniel@island.COM (Daniel Smith): : I'd rewrite it in perl, but one of the things grabchars lets you do :is assign defaults and time out after a given number of seconds, and I :don't see how to set a timer in perl (Larry?). You can use the alarm() function and catch SIGALRM. (Funny thing to find lurking in comp.lang.perl^H^H^H^Hc.) --tom -- I get so tired of utilities with arbitrary, undocumented, compiled-in limits. Don't you? Tom Christiansen tchrist@convex.com convex!tchrist