• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Consol Animation Or haw to erace the no used Text

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i woant to make a consol animation using Thread= I dan it but i don't know haw to Erase the no Used text witch i made before

For Example I have one Console image "^" and i made this image LEFT and RIGHT , UP and Down 2 steps with one Thread but haw to Clean the Screen after every Step witch the image made. Like a GUI game every move UPDATE the Screen and i with to updait it

^
If i make the animation in normal way i see ^^^ after the 4 move
^

and no more because the image is the same. Haw to Update it haw to clean the screen I don't know haw to form the ? exactly I hope you understand me.
 
Michail Petrov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Come on people help I know dath you know
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has only very limited support for doing things with the text in the console window. There are no built-in classes or methods for erasing text or doing more advanced things.

You might be able to do those things with for example the Java Curses library (I have not used that myself, so I don't know if it will suit your needs).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!