my_nihilist has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use Term::ReadLine; # presuming Term::ReadLine::Gnu is present... my $term = new Term::ReadLine 'ReadLine test'; my $prompt = "type: "; $term->bind_key('61', \&insertxt); while (1) { my $input=$term->readline($prompt); } sub insertxt { $term->insert_text("hello!"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Term::ReadLine::Gnu
by almut (Canon) on Mar 19, 2008 at 18:30 UTC | |
by my_nihilist (Sexton) on Mar 19, 2008 at 20:42 UTC |