ackerleytng has asked for the wisdom of the Perl Monks concerning the following question:
Hi!
I wish to read user input and the problem that I was facing was that pressing almost anything non-text on the keyboard produces these escape sequences on screen ^[[A etc that were interfering with my output.
To get around that, I used Term::Readline. Now I wish to maintain and access a history of past inputs. I read this post at http://stackoverflow.com/questions/14671797/how-to-use-termreadline-to-retrieve-command-history, which suggests that I install Term::Readline::Gnu.
Unfortunately, I don't have root access and so I can't install that module. I still keep getting ^[[A etc on my output. Any way to get the same functionality without installing stuff?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simulating input history without Term::Readline::Gnu
by mtmcc (Hermit) on Jul 15, 2013 at 18:58 UTC | |
by ackerleytng (Initiate) on Jul 16, 2013 at 19:02 UTC | |
|
Re: Simulating input history without Term::Readline::Gnu
by rjt (Curate) on Jul 15, 2013 at 18:10 UTC | |
by ackerleytng (Initiate) on Jul 16, 2013 at 19:00 UTC |