geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r744148 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/shell/ShellImpl.java
Date Fri, 13 Feb 2009 15:50:08 GMT
Author: gnodet
Date: Fri Feb 13 15:50:06 2009
New Revision: 744148

URL: http://svn.apache.org/viewvc?rev=744148&view=rev
Log:
Revert GSHELL-159

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=744148&r1=744147&r2=744148&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 Feb 13 15:50:06 2009
@@ -238,11 +238,7 @@
             String message = application.getModel().getBranding().getWelcomeMessage();
             if (message != null) {
                 io.out.print(message);
-                int width = io.getTerminal().getTerminalWidth() - 1;
-                if (width <= 0) {
-                    width = 80;
-                }
-                io.out.println(repeat("-", width));
+                io.out.println(repeat("-", io.getTerminal().getTerminalWidth() - 1));
                 io.out.flush();
             }
         }



Mime
View raw message