Class Screen


  • public class Screen
    extends java.lang.Object
    Unfortunately there is no way to test this in a test case. You need to be a user with an actual terminal session.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String exec()  
      static java.lang.String exec​(boolean redirectInput, java.lang.String... cmd)  
      static int guessWidth()  
      static int parseWidth​(java.lang.String output)  
      static java.lang.String waitAndCapture​(java.lang.Process p)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • exec

        public static java.lang.String exec()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • guessWidth

        public static int guessWidth()
      • parseWidth

        public static int parseWidth​(java.lang.String output)
      • exec

        public static java.lang.String exec​(boolean redirectInput,
                                            java.lang.String... cmd)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • waitAndCapture

        public static java.lang.String waitAndCapture​(java.lang.Process p)
                                               throws java.io.IOException,
                                                      java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException