|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: Shell style line-editing without benefit of CPAN modulesby samtregar (Abbot) |
| on Nov 18, 2006 at 15:03 UTC ( [id://584877]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Is there a way to get a line editing function using the arrow keys just using POSIX (or some other standard approach) without access to any of the extended functionality provided by CPAN modules? Of course. How do you think the author of Term::ReadLine and friends did it? Of particular interest to you might be Term::ReadLine::Zoid, a pure-perl Term::ReadLine implementation.
So perhaps you've guessed by now: There is no functional Term::Readline or Term:Readkey on these systems, and I cannot install one. Bullshit. You just haven't figured out how to install one yet! Hell, if you succeed in your attempt to reinvent Term::ReadLine you'll have done it via the hardest possible route - recode it by hand! Here's a few easier possibilities:
-sam
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||