Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 12.05.2006, 09:04   #1
The splendid
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default 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.
__________________
The main achievements in applied research are due to fundamental science.
Reply With Quote
Old 12.05.2006, 13:23   #2
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default Re: clear screen Java code

Здарофф апер,

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

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

превед !

PS Под Windows не могу ничего предложить
Reply With Quote
Old 12.05.2006, 16:41   #3
The splendid
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default Re: clear screen Java code

etot variant ya nashel pozje, thanks anyway.
Reply With Quote
Old 12.05.2006, 16:50   #4
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 33
Posts: 379
Downloads: 4
Uploads: 0
Reputation: 0 | 0
Default Re: clear screen Java code

a pod Windami chto delaesh ?
Reply With Quote
Old 12.05.2006, 17:08   #5
The splendid
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Pure thoughts
Age: 36
Posts: 3,408
Downloads: 22
Uploads: 0
Reputation: 222 | 3
Default Re: clear screen Java code

poka udachno xochu jdk postavit
govoryat cherez JNI mojno sdelat', potom wrappnut eto vse vmeste.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 16:28.


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