geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r740396 - /geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
Date Tue, 03 Feb 2009 19:51:19 GMT
Author: gnodet
Date: Tue Feb  3 19:51:18 2009
New Revision: 740396

URL: http://svn.apache.org/viewvc?rev=740396&view=rev
Log:
GSHELL-156: Disable system bell if 'jline.nobell' system property is true

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java?rev=740396&r1=740395&r2=740396&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-console/src/main/java/org/apache/geronimo/gshell/console/JLineConsole.java
Tue Feb  3 19:51:18 2009
@@ -71,6 +71,9 @@
 
         reader = new ConsoleReader(io.inputStream, new PrintWriter(io.outputStream, true),
/*bindings*/null, io.getTerminal());
         reader.setUsePagination(true);
+        if (Boolean.getBoolean("jline.nobell")) {
+            reader.setBellEnabled(false);
+        }
         reader.setCompletionHandler(new CandidateListCompletionHandler());
     }
 



Mime
View raw message