Package org.jf.util

Class ConsoleUtil

java.lang.Object
org.jf.util.ConsoleUtil

public class ConsoleUtil extends Object
  • 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

      private static String attemptCommand(String[] command)