Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: ALTernative solutions?

by ExReg (Priest)
on Dec 21, 2011 at 23:02 UTC ( [id://944709]=note: print w/replies, xml ) Need Help??

in reply to Re: ALTernative solutions?
in thread ALTernative solutions?

I can use system and have called out to the shell to be able to read the arrow and function keys. Still not the ALT key. I have not been able to find enough info on how to do it with stty or setmetamode. The mans (or is it men?) are a bit too terse. Google is not much better. Still searching.

Replies are listed 'Best First'.
Re^3: ALTernative solutions?
by BrowserUk (Patriarch) on Dec 21, 2011 at 23:10 UTC

    Have you considered looking inside Term::ReadKey or Term::Readline to see how they do it?

    While you're there, you might just as well c&p the appropriate bits of their tried and tested code into your application.

    Of course, once you've done that, why not just grab the whole package and stuff it into your project verbatim.

    But then, what is the difference between doing that and just installing the module and using it?

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-07-22 09:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.