in reply to Re: a ReadKey problem
in thread a ReadKey problem

Mostly linux, but it should be portable -- but shouldn't ReadKey do OS dependent stuff for me ?
--
Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
>>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<

Replies are listed 'Best First'.
Re3: a ReadKey problem
by bbfu (Curate) on Jan 28, 2003 at 20:43 UTC

    It's not really OS dependant, actually. It depends on the terminal / terminal emulator you're using. Term::ReadKey is more low-level, and assumes you will figure out what terminal-type the user has and interpret accordingly.

    Perhaps you should look at the source of Term::Readline::Perl to see how it handles multi-char escape sequences, as it uses a similar system as you, with the hashes and all.

    bbfu
    Black flowers blossum
    Fearless on my breath