I am using Linux EPIC and try to clear the console by the following perl code:
$clear_string = `clear`;
It works well on Linux terminal window, but not for EPIC console (only saw strange characters).
Thank you so much for helping!
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.
Thanks a lot for replying and I will try Remote System Explorer.