Package org.jf.util
Class ConsoleUtil
java.lang.Object
org.jf.util.ConsoleUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringattemptCommand(String[] command) private static intprivate static intstatic intAttempt to find the width of the console.
-
Constructor Details
-
ConsoleUtil
public ConsoleUtil()
-
-
Method Details
-
getConsoleWidth
public static int getConsoleWidth()Attempt to find the width of the console. If it can't get the width, return a default of 80- Returns:
- The current console width
-
attemptStty
private static int attemptStty() -
attemptMode
private static int attemptMode() -
attemptCommand
-