You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/05/24 10:10:39 UTC

svn commit: r659765 - /geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java

Author: jdillon
Date: Sat May 24 01:10:39 2008
New Revision: 659765

URL: http://svn.apache.org/viewvc?rev=659765&view=rev
Log:
(GSHELL-115) Added hacked Terminal instance to IO, need to improve this, but for now this will work fine

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java?rev=659765&r1=659764&r2=659765&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java (original)
+++ geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java Sat May 24 01:10:39 2008
@@ -30,6 +30,7 @@
 import org.apache.geronimo.gshell.common.tostring.ReflectionToStringBuilder;
 import org.codehaus.plexus.util.IOUtil;
 import org.slf4j.helpers.MessageFormatter;
+import jline.Terminal;
 
 /**
  * Container for input/output handles.
@@ -171,6 +172,13 @@
         return outputStream == errorStream;
     }
 
+    //
+    // HACK: Expose the terminal instance here, need to refactor all this muck!!!
+    //
+    public Terminal getTerminal() {
+        return Terminal.getTerminal();
+    }
+
     /**
      * Set the verbosity level.
      *