Armenian Knowledge Base

Armenian Knowledge Base (https://forum.armkb.com/)
-   Web Development (https://forum.armkb.com/web-development/)
-   -   clear screen Java code (https://forum.armkb.com/web-development/23106-clear-screen-java-code.html)

AvDav 12.05.2006 08:04

clear screen Java code
 
kak mojno v java ochistit consol ? v c/c++ est system("cls") dlia windy i system("clear") dlia unix, ix java analog Runtime.getRuntime().exec(...) no on sozdaet docherniy process i zapuskaet kommandu - effekt teryaetysa, ne rabotaet. v inete pokopalsya est varianty tipa zapolnit pusitmi strochkami no eto toje ploxoe reshenie. jelatelno cross-platformenniy code, plz.
Spasibo.

Boyov 12.05.2006 12:23

Re: clear screen Java code
 
Здарофф апер,

Я Java можно сказать вообще не знаю, но под Линух консолью можно легко манипулировать с помощю escape sequences.

работает под BASH: System.out.println ("\033[2J"); ;)
howto

превед !

PS Под Windows не могу ничего предложить :(

AvDav 12.05.2006 15:41

Re: clear screen Java code
 
etot variant ya nashel pozje, thanks anyway.

Boyov 12.05.2006 15:50

Re: clear screen Java code
 
a pod Windami chto delaesh ?

AvDav 12.05.2006 16:08

Re: clear screen Java code
 
poka udachno xochu jdk postavit :)
govoryat cherez JNI mojno sdelat', potom wrappnut eto vse vmeste.


All times are GMT. The time now is 10:24.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.