print chr(27)."[5;5H".chr(27)."[J";
i know this works with unix but this using just regular ascii. i should work have not tried it. | [reply] |
print "\n" x 50;
I know this is cheesy but it would probably work for most cli's... without requiring a proprietary system call with the tradeoff that you assume the height of the term... 50 is probably pretty safe for most text-based applications. I was just trying to think of a different way to accomplish the desired result. Hope it helps. TTFN & Shalom.
-PipTigger | [reply] |
print chr(27)."[5;5H".chr(27)."[J";
i know this works with unix but this using just regular ascii. i should work have not tried it. | [reply] |
why does print `cls`;
in windows return the symbol for women?
rev aaron
apepelis@yahoo.com | [reply] |
here's two e-mails on it...
first written:
Here's the difference between the 2:
when using the back ticks, the output gets returned and is not directed to the standard output (the command
prompt)
i.e:
$user = `whoami`;
The variable $user is set to llam .
when using the system(command), the output gets directed and displayed to the standard output (the command
prompt) and a value of 0 is returned if the command was accepted without any errors
i.e:
$user = system("whoami");
The variable $user is set to 0 BUT llam is displayed on the command prompt.
and another that I sent:
but the "women symbol" is coming out as 0x0C
0000 1101 which is being decoded by your default FONT.
change your dafult font and it prints out other things.
http://www.erg.abdn.ac.uk/users/gorry/eg2069/ascii-table.pdf
in arial it's a bullet.
make sense?
| [reply] |
exec(cls);
system(cls);
| [reply] [d/l] |