Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 12.05.2006, 08:04   #1
Ego coder
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Armenia, Yerevan
Posts: 3,636
Downloads: 22
Uploads: 0
Reputation: 228 | 4
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.
__________________
Nothing is true, everything is permitted.
Reply With Quote
Old 12.05.2006, 12:23   #2
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 36
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, 15:41   #3
Ego coder
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Armenia, Yerevan
Posts: 3,636
Downloads: 22
Uploads: 0
Reputation: 228 | 4
Default Re: clear screen Java code

etot variant ya nashel pozje, thanks anyway.
Reply With Quote
Old 12.05.2006, 15:50   #4
4294967296
 
Boyov's Avatar
 
Join Date: 03 2002
Location: /proc/1
Age: 36
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, 16:08   #5
Ego coder
 
AvDav's Avatar
 
Join Date: 07 2004
Location: Armenia, Yerevan
Posts: 3,636
Downloads: 22
Uploads: 0
Reputation: 228 | 4
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 05:03.


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