So basically I have input reader that looks like this:
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
while (true) {
String userInput = stdIn.readLine();
if (userInput != null) {
String message = username + ":" + userInput;
}
}
When I enter some text in terminal for input let's say:
this is a test
And I hit ENTER it stays there. Is there any way for it to get automatically removed from console WITHOUT clearing the whole console ?