geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r659765 - /geronimo/gshell/trunk/gshell-support/gshell-io/src/main/java/org/apache/geronimo/gshell/io/IO.java
Date Sat, 24 May 2008 08:10:39 GMT
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.
      *



Mime
View raw message