perl-Term-RawInput - A simple drop-in substitute for <STDIN> that also captures non-standard keys like Home

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Term-RawInput-1.23-alt1.noarch.rpm
Package name perl-Term-RawInput
Package version 1.23
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 52.03 KB
Installed size 52.03 KB
I needed a ridiculously simple function that behaved exactly like $input=<STDIN> in scripts, that captured user input and and populated a variable with a resulting string. BUT - I also wanted to use other KEYS like DELETE and the RIGHT ARROW key and have them captured and returned. So I really wanted this:
my $prompt='PROMPT : ';
... where I could test the variable '$key' for the key that was used to terminate the input. That way I could use the arrow keys to scroll a menu for instance.
I looked through the CPAN, and could not find something this simple and straight-forward. So I wrote it. Enjoy.
NOTE: Backspace is not captured - but used to backspace. DELETE is captured. Also, no Control combinations are captured - just the non-standard keys INSERT, DELETE, ENTER, ESCAPE, HOME, PGDOWN, PGUP, END, the ARROW KEYS, and F1-F12 (but *NOT* F1-F12 with Windows Version of Perl - especially Strawberry Perl [ This is a limitation of the Term::ReadKey Module. ]; but, works with Cygwin Perl!). All captured keys listed will terminate user input and return the results - just like you would expect using ENTER with <STDIN>.


Package Version Architecture Repository
perl-Term-RawInput - - -


Name Value
/usr/share/perl5 -
perl( -
perl(IO/ -
perl(Term/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Term/ = 1.230
perl-Term-RawInput = 1.23-alt1


Type URL
Binary Package perl-Term-RawInput-1.23-alt1.noarch.rpm
Source Package perl-Term-RawInput-1.23-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Term-RawInput rpm package:
    # sudo apt-get install perl-Term-RawInput



See Also

Package Description
perl-Term-ReadLine-EditLine-1.1.1-alt1.noarch.rpm Term::ReadLine style wrapper for Term::EditLine
perl-Term-ReadLine-Event-0.05-alt1.noarch.rpm Wrappers for Term::ReadLine's new event_loop model
perl-Term-ReadLine-Perl-1.0303-alt1_19.noarch.rpm Readline implementation in Perl
perl-Term-ReadLine-Perl5-1.45-alt1.noarch.rpm Perl5 version of GNU ReadLine
perl-Term-ReadLine-Simple-0.309-alt1.noarch.rpm Read a line from STDIN
perl-Term-ReadLine-TTYtter-1.4-alt1.noarch.rpm A Term::ReadLine driver based on Term::ReadLine::Perl, with special features for microblogging and
perl-Term-ReadLine-Tiny-1.09-alt1.noarch.rpm Read a line from STDIN
perl-Term-ReadLine-Zoid-0.07-alt2_8.noarch.rpm A readline file browser mode
perl-Term-ReadPassword-Win32-0.03-alt1.noarch.rpm unknown
perl-Term-Report-1.18-alt2_8.noarch.rpm Easy way to create dynamic 'reports' from within scripts
perl-Term-Screen-1.06-alt1.noarch.rpm A Simple all perl Term::Cap based screen positioning module
perl-Term-Screen-Lite-0.06-alt1.noarch.rpm Platform independent interface to terminal screen
perl-Term-Screen-ReadLine-0.38-alt1.noarch.rpm Term::Screen extended with ReadLine
perl-Term-Screen-Uni-0.04-alt1.noarch.rpm Works exactly as the Term::Screen manpage (version 1.09) on evry platform Term::Screen is working p
perl-Term-Screen-Wizard-0.56-alt1.noarch.rpm A wizard on your terminal