Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Unix text-mode CB Client

by btrott (Parson)
on May 24, 2001 at 11:51 UTC ( #82843=note: print w/replies, xml ) Need Help??


in reply to Unix text-mode CB Client

Another way to implement a timeout on a user input read (that is what you're doing, right?) is to use Term::ReadKey and its ReadLine method (or ReadKey, but here you want to read a line, so...).

use Term::ReadKey; my $message = ReadLine(10); ## timeout of 10 seconds
This manages all of the timeout issues for you. Although it may not do so in a way that suits you, who knows. And you may already have tried it, even. Anyway.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://82843]
help
Chatterbox?
LanX can only recommend css settings hiding certain monkssess ;)
[LanX]: I can't hear the word inquisition without Mel Brooks jumping in front of my inner eye
[LanX]: what a show

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-01-18 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (159 votes). Check out past polls.