Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Term::ReadLine question, double enter

by jlongino (Parson)
on Sep 26, 2002 at 04:49 UTC ( #200815=note: print w/replies, xml ) Need Help??

in reply to Term::ReadLine question, double enter

I believe the code works as you would expect it to (it seems to under Solaris 2.8). Yes "Readmode 4" will prevent the user from using ^C, ^D, ^Z, etc. to escape from the input.

To solve the double Enter problem try using "ReadMode 5" instead. It behaves just like ReadMode4 except that no CR/LF translation is performed, and if possible, parity will be disabled (only if not being used by the terminal, however. It is no different from mode 4 under Windows.): an excerpt from the perldoc Term::ReadKey docs. But since you are using cygwin, there may be an exception in that case.


  • Comment on Re: Term::ReadLine question, double enter

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200815]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2022-01-27 15:22 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (70 votes). Check out past polls.