• Post Reply Bookmark Topic Watch Topic
  • New Topic

Consol Animation Or haw to erace the no used Text  RSS feed

 
Michail Petrov
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
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • 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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!