I found this weird behavior when using Term::ReadLine::Gnu in a Perl
program called from vim (in linux). When an area in vim is selected (in
visual mode) and an external program is called, the contents of the
selected area act as STDIN for the program, and are overwritten by the
program's output. Now, if the program is
perl -e 'use Term::ReadLine;',
the selected area gives way to an empty
line, as it should since there is no output. But if the program is
perl -e 'use Term::ReadLine; $term=Term::ReadLine->new("");'
then the selected area gives way to a unique line:
^[[?1034h
Any idea?
--
Jorge Almeida
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/