Package daevil.term

Class Console


  • public class Console
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Console()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertInvisibleChars​(java.lang.String s)  
      ProcessResult execute​(OSType host, OSType osType, java.lang.String executeThis, java.util.List<java.lang.String> arguments, java.util.Map<java.lang.String,​java.lang.String> input, int timeoutSeconds, boolean haltOnFailure)  
      static java.lang.String getProcessStatus​(com.pty4j.PtyProcess process)  
      static java.util.List<java.lang.String> setRunWIthWineCmd​(com.pty4j.PtyProcessBuilder processBuilder, java.lang.String executeThis)  
      static Gobbler startReader​(java.io.InputStream in, java.util.concurrent.CountDownLatch latch)  
      static Gobbler startStderrGobbler​(com.pty4j.PtyProcess process)  
      static Gobbler startStdoutGobbler​(com.pty4j.PtyProcess process)  
      static void writeToStdinAndFlush​(com.pty4j.PtyProcess process, java.lang.String input, boolean hitEnter)  
      • Methods inherited from class java.lang.Object

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

      • Console

        public Console()
    • Method Detail

      • setRunWIthWineCmd

        public static java.util.List<java.lang.String> setRunWIthWineCmd​(com.pty4j.PtyProcessBuilder processBuilder,
                                                                         java.lang.String executeThis)
      • startStdoutGobbler

        public static Gobbler startStdoutGobbler​(com.pty4j.PtyProcess process)
      • startStderrGobbler

        public static Gobbler startStderrGobbler​(com.pty4j.PtyProcess process)
      • startReader

        public static Gobbler startReader​(java.io.InputStream in,
                                          java.util.concurrent.CountDownLatch latch)
      • convertInvisibleChars

        public static java.lang.String convertInvisibleChars​(java.lang.String s)
      • writeToStdinAndFlush

        public static void writeToStdinAndFlush​(com.pty4j.PtyProcess process,
                                                java.lang.String input,
                                                boolean hitEnter)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getProcessStatus

        public static java.lang.String getProcessStatus​(com.pty4j.PtyProcess process)
      • execute

        public ProcessResult execute​(OSType host,
                                     OSType osType,
                                     java.lang.String executeThis,
                                     java.util.List<java.lang.String> arguments,
                                     java.util.Map<java.lang.String,​java.lang.String> input,
                                     int timeoutSeconds,
                                     boolean haltOnFailure)