Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Turning off local-echo from a server.

by Anonymous Monk
on Jan 13, 2003 at 23:49 UTC ( [id://226655]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I've been learning perl for a while now, and decided to practice everything I've learned in one big go by making a mud. It is going nicely, but I don't know how to turn off local-echo on the connecting user's client when the time comes to enter their password.

Everywhere I look tells me how to turn it off locally :( The worst thing is that I read it yesterday, but I can't for the life of me remember where it was!

Any help would be much appreciated.

Thanks in advance,
--
A frustrated llama.

Replies are listed 'Best First'.
Re: Turning off local-echo from a server.
by AcidHawk (Vicar) on Jan 14, 2003 at 12:05 UTC

    Have a look at http://www.perlmonks.org/index.pl?node_id=812

    -or-

    Similar to defyance

    #! /use/bin/perl use strict; use Term::ReadKey; ReadMode( "noecho"); print "Enter pwd please :"; chomp (my $pwd = <>); ReadMode ("original") ; print "\nYou typed $pwd!\n";

    -----
    Of all the things I've lost in my life, its my mind I miss the most.
Re: Turning off local-echo from a server.
by defyance (Curate) on Jan 14, 2003 at 02:56 UTC
    You have quite a few options here..

    I would go with:

    use Term::ReadKey; ReadMode 2; chomp( my $password = ReadLine ); ReadMode 0;
    There are several nodes on this site that will lead you in the right direction, I suggest a good search on "Handling user input", or something like that.

    -- Can't never could do anything, so give me and inch, I'll make it a mile.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://226655]
Approved by virtualsue
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-03-28 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found