I have searched Google for about a day or two now and I did find a few examples. Unfortunately none of them worked.
What I would like to accomplish is the ability to clear the screen while in command (cmd). I have tried the following examples but none have worked:
[tt]system( "cls" );
passthru( "cls" );
exec( "cls" );
shell_exec( "cls" );
system( "command /C cls" );
echo chr( 033 ), "cm";
print( "\x1b\x5b\x58\x1b\x5b\x32\x4a" );
echo "\x1b\x5b\x58\x1b\x5b\x32\x4a";[/tt]
The result after trying the above is weird characters in the output. The screen will still not clear.
I have also used the "ghetto" way by adding new lines until the previous output was out of sight but the prompt will end up at the bottom of the screen instead of near the top.
What I would like to accomplish is the ability to clear the screen while in command (cmd). I have tried the following examples but none have worked:
[tt]system( "cls" );
passthru( "cls" );
exec( "cls" );
shell_exec( "cls" );
system( "command /C cls" );
echo chr( 033 ), "cm";
print( "\x1b\x5b\x58\x1b\x5b\x32\x4a" );
echo "\x1b\x5b\x58\x1b\x5b\x32\x4a";[/tt]
The result after trying the above is weird characters in the output. The screen will still not clear.
I have also used the "ghetto" way by adding new lines until the previous output was out of sight but the prompt will end up at the bottom of the screen instead of near the top.