geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r705505 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Date Fri, 17 Oct 2008 08:14:21 GMT
Author: jdillon
Date: Fri Oct 17 01:14:20 2008
New Revision: 705505

URL: http://svn.apache.org/viewvc?rev=705505&view=rev
Log:
Don't need term width hack anymore, custom terms fix that crap

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java?rev=705505&r1=705504&r2=705505&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Fri Oct 17 01:14:20 2008
@@ -247,14 +247,7 @@
             String message = branding.getWelcomeMessage();
             if (message != null) {
                 io.out.print(message);
-
-                // If we can't tell, or have something bogus then use a reasonable default
-                int width = io.getTerminal().getTerminalWidth();
-                if (width < 1) {
-                    width = 80;
-                }
-                io.out.println(StringUtils.repeat("-", width - 1));
-
+                io.out.println(StringUtils.repeat("-", io.getTerminal().getTerminalWidth()
- 1));
                 io.out.flush();
             }
         }



Mime
View raw message