Package org.tomitribe.crest.term
Class Screen
- java.lang.Object
-
- org.tomitribe.crest.term.Screen
-
public class Screen extends java.lang.ObjectUnfortunately 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.Stringexec()static java.lang.Stringexec(boolean redirectInput, java.lang.String... cmd)static intguessWidth()static intparseWidth(java.lang.String output)static java.lang.StringwaitAndCapture(java.lang.Process p)
-
-
-
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.IOExceptionjava.lang.InterruptedException
-
-