Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Changing stty echo to star characters

by derby (Abbot)
on Jan 04, 2012 at 11:46 UTC ( #946226=note: print w/replies, xml ) Need Help??


in reply to Changing stty echo to star characters

I don't believe the stty command has an option for this. You would need to read each character individually and echo back an asterisk accordingly. Term::Readkey makes this easy but you still need to handle edge cases like the backspace or control characters. Or you could just use IO::Prompt.

-derby
  • Comment on Re: Changing stty echo to star characters

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946226]
help
Chatterbox?
LanX and Bonny Tyler sings "total eclipse of the states"...
[runrig]: https://youtu.be/ HmLk2vSXXtk
[LanX]: ... Trump Around. ... 🎶

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-08-21 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?