Re: Clear the Screen
From: Anthony Borla (ajborla_at_bigpond.com)
Date: 01/09/04
- Next message: Anthony Borla: "Re: Clear the Screen"
- Previous message: Anthony Borla: "Re: Clear the Screen"
- In reply to: Nathan Zumwalt: "Re: Clear the Screen"
- Next in thread: Denz: "Re: Clear the Screen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Anthony Borla: "Re: Clear the Screen"
- Previous message: Anthony Borla: "Re: Clear the Screen"
- In reply to: Nathan Zumwalt: "Re: Clear the Screen"
- Next in thread: Denz: "Re: Clear the Screen"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|