Page 1 of 1

Clear text in upper left corner of screen from script?

Posted: Sun Oct 05, 2003 9:17 am
by sysQuik
Does anyone know how to clear the text displayed in the upper left corner of the screen? I've been looking through all the classes in the SDK and I know it must be in there, but I'm not finding it. I've used the poormans methed of a few iprintln "", but it's hard to catch what else has been listed in the console unless I log it to a file. Also the text jumps up and down with that method. I've search through the index here as well, but to no avail. Also this would be from script, not typing a command into the console.

Thanks,
SysQuik

Posted: Sun Oct 05, 2003 8:54 pm
by The Jackal
I am not sure what you are referring to, but here is an array of print commands.

Code: Select all

iprint
iprintln
iprintlnbold
iprintln_noloc
iprintlnbold_noloc
mprint
mprintln
centerprint
stufftoprint
locprint

Posted: Sun Oct 05, 2003 9:11 pm
by bdbodger
Iprintln dissappears after a while on it's own .

Posted: Sun Oct 05, 2003 9:20 pm
by sysQuik
I just want to clear the text on the screen. I know it will fade after awhile, but I mean clear it right away with a line of script. It must be possible. Thanks for all your input!

Sysquik

Posted: Mon Oct 06, 2003 7:43 am
by Bjarne BZR
How about printing multiple lines of empty strings, to push the exising lines out... ( think there is a max to the number of lines that fit ).

Posted: Mon Oct 06, 2003 8:33 am
by The Jackal
I think its 5 lines per print screen. But I still do not understand what he is tryng to do. Perhaps he or anyone can break it down for a dummy. :oops:

Posted: Mon Oct 06, 2003 2:36 pm
by nuggets
clear:
iprintln "";iprintln "";iprintln "";iprintln "";iprintln ""
end

only problem though, if it's being used too quickly, you will end up with more than 5 lines

Posted: Mon Oct 06, 2003 2:59 pm
by Slyk
Nuggets is right. I'd mod it a bit by printing the line you WANT, then put in a wait statement like:

iprintln "my text stuff"
wait 5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""
wait .5
iprintln ""

Just alter the wait time to something fair enough for reading the text. The .5 waits between the blanks prints would make it move up at a good pace....ofcourse no .5 or no wait at all will give ya the immediate clear. Whichever looks best to you.

Posted: Wed Oct 08, 2003 4:20 am
by sysQuik
Thanks everyone for the input. I've been doing that 5 blank lines to clear the text, but it makes it hard to read earlier messages in the console. No biggie really, I just logfile if I think I'll need it.

Thanks again,
Sysquik