develooper Front page | perl.beginners | Postings from September 2009

How to provide editor environment on <STDIN>

Thread Next
From:
Harry Putnam
Date:
September 22, 2009 14:01
Subject:
How to provide editor environment on <STDIN>
Message ID:
87skeeofto.fsf@newsguy.com
I use several homemade scripts frequently that revolve around taking
input from user and writing to specified files.

One thing I really miss while giving the input is some kind of 
editor like environment, be it vi or emacs, either would be 
great.  I really miss completion too, as provide by bash.

How big of a chore would it be to include code into the script that
creates some kind of editor like environment and allows bash style
completion?

I'm a very low level perl coder.. and will need pointers to some clues
about how to get this done, and incorporated into my scripts.

In shell scripting, at least with bash, taking input from user is done
with `read line' but you can say 'read -e line' and the input is
suddenly done with bash completion.. and I think a few other niceties.

Is there something similar in perl?


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About