> Chris,
>
[quoted text clipped - 5 lines]
>
> this does it - thanks :o)
If you don't have control over the number of lines on the display this is
not a good solution.
On my system my terminal console can be resized to have 160 lines of text.
This code would fail to clear the screen on my system. If my console was
somehow restricted to 100 lines then this would be an acceptable solution.
Bottom line, don't make assumptions. Whenever you see something like "Just
to be safe" it usually indicates that someone is making an assumption or
that the solution is not the best solution.
I'd use this solution for an in-house tool or something I whipped up for
personal use. I would not put this in something I shipped to a customer.

Signature
Send e-mail to: darrell dot grainger at utoronto dot ca
Chris Smith - 30 May 2005 20:03 GMT
. <darrell@does.want.spam.com> wrote:
> If you don't have control over the number of lines on the display this is
> not a good solution.
Of course this is not a good solution. In my response, it was a preface
to explaining why clearing the screen is not actually possible in Java.
On the other hand, if this is good enough for the OP, then obviously the
OP is not designing real-life professional-quality interfaces, and who
am I to argue? Professional interfaces are not always a requirement.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
The Wogster - 31 May 2005 16:01 GMT
. wrote:
>>Chris,
>>
[quoted text clipped - 19 lines]
> I'd use this solution for an in-house tool or something I whipped up for
> personal use. I would not put this in something I shipped to a customer.
While that is true, perhaps there are better solutions:
1) Use a screen handling library like jcurses or jcurzez.
2) Ask the installer to specify a terminal type so you can send the
right escape codes for the terminal in question.
3) Ask the installer to specify the escape code needed or the screen
line limit.
W