in reply to Problems with Term::ReadKey

Add $|= 1;. (perlvar)

Update: You should also treat chr(13) the same as chr(10) as the raw mode you are putting things into means that the default translation to a "\n" upon input of a "\r" is disabled (at least in some environments). I had to type Ctrl-J to get it to end.

- tye        

  • Comment on Re: Problems with Term::ReadKey (output problem, not input)

Replies are listed 'Best First'.
Re^2: Problems with Term::ReadKey (output problem, not input)
by uberdisco (Initiate) on Sep 18, 2011 at 18:46 UTC
    Adding
    $|= 1;
    solved the problem. Thank you very much, this was driving me nuts! Cheers, uberdisco