Package Common
Class ClearOutput
java.lang.Object
Common.ClearOutput
The
ClearOutput
class provides a utility method for clearing the console output.
It attempts to clear the terminal screen based on the operating system.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
Clears the console output by executing the appropriate command for the current operating system.
-
Constructor Details
-
ClearOutput
public ClearOutput()
-
-
Method Details
-
clearOutput
public static final void clearOutput()Clears the console output by executing the appropriate command for the current operating system. If the command fails, a fallback method is used to clear the output using ANSI escape codes.
-