Re: Clear the Screen

From: Anthony Borla (ajborla_at_bigpond.com)
Date: 01/09/04


Date: Fri, 09 Jan 2004 13:28:45 GMT


"Nathan Zumwalt" <nathanz@hotmail.com> wrote in message
news:521673fd.0401081330.49023c22@posting.google.com...
> It's kind of a hack, but what about this:
>
> Runtime.exec("cls");
>
> This makes your application platform-dependent, but it looks
> like your stated alternative does this as well.
>

Actually, this won't work. Yes, the 'cls' command is invoked, *but* it is
invoked in a new process ['command.com' or 'cmd.exe' is exected creating a
new process], and *does not* clear the Java application's console.

Cheers,

Anthony Borla



Relevant Pages

  • Synology DS-101
    ... I've been playing with a Synology DS-101 Disk Station recently. ... wondering if anyone has been able to hack into the unit (ie get a console ...
    (comp.os.linux.embedded)
  • Re: Clear the Screen
    ... It's kind of a hack, ... This makes your application platform-dependent, ... > The first option was the obv: ...
    (comp.lang.java)