Let me clarify, I am currently finishing up a terminal chess program I'm writing. The way it works now is that after every turn the board is printed again. This looks sloppy though and I would prefer if there were some way for the board to just be replaced/updated each turn. If this cant be done in eclipse are there other IDE's that can do this?
Asked
Active
Viewed 57 times
2 Answers
0
In order to do this, you cannot actually do this in the terminal. For this, consider using JFrames. JFrames open up an actual panel on your screen which shows the content.

SatvikVejendla
- 424
- 5
- 14
-
Ok thought that might be the case, thanks for your help. – Bglaws Dec 10 '20 at 01:45
0
its not really an IDE thing as much as it is an OS thing:
public static void clearScreen() {
System.out.print("\033[H\033[2J");
System.out.flush();
}
Read this: ref: Java: Clear the console

coopski
- 1