clear console in perl

yunfengli wrote on Wed Nov 26 17:38:49 CET 2008:
Hi all,

I am using Linux EPIC and try to clear the console by the following perl
   $clear_string = `clear`;
   print $clear_string;

It works well on Linux terminal window, but not for EPIC console (only saw
strange characters).

Thank you so much for helping!
jploski wrote on Wed Nov 26 18:06:13 CET 2008:
The standard Console view of Eclipse is not a full-fledged terminal emulator,
so it does not understand the control sequences emitted by clear.

If you really want 'clear' or stuff like 'ncurses' to work, you should installi
in addition to EPIC the Remote System Explorer (which is an official Eclipse
project). It has a Terminals view where you can enter shell commands (e.g.
to start Perl scripts) and where the 'clear' command should work as expected.
yunfengli wrote on Wed Nov 26 18:17:08 CET 2008:
Thanks a lot for replying and I will try Remote System Explorer.

Note: The above is an archived snapshot of a forum thread. Use the original thread at to post comments.