The code is in readline.pm from Term::ReadLine::Perl. The clear command is run inside of backticks to get the escape sequence to clear the screen which is then output to the OUT handle.
I haven't found an escape sequence for the win32 console and it does not support the ANSI ones. I think the clear screen functionality will need to be supported either by a direct call to cls or by using some combination of Win32::Console and Win32::Console::ANSI to handle the clear. I'm tempted to start with a fix for Perldl2 only rather than try to deal with upstream readline fixes. For what we are doing, a system call to cls should work ok. --Chris On 21-Jun-2010, David Mertens writes: > > I've grepped through our own code and Devel::REPL's code > (thanks to CPAN's grep tool) and I've scanned Devel::REPL's > dependency list. I didn't turn up anything that actually > shelled out the word 'clear'. in fact, Devel::REPL doesn't > have the word 'clear' anywhere in its source code! > > Still, I'm pretty sure it's shelling out that command. The > command 'clear' is the command I use on linux to clear the > screen. Second, that message is *exactly* how DOS tells me > I've mistyped a program name. However, I don't know where to > look for it. > > Where are the key-bindings defined? > > David
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
