commit | 1b869f4da39fa1d5ab6e92f1f2dab391b5e7a206 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Tue Oct 20 13:15:36 2009 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Tue Oct 20 13:15:36 2009 +0000 |
tree | 110e2eccb2386825d2d98c423ef160e6f9f7b026 | |
parent | 1710abf0855ed8107dc93a74cbf3fe680fdd28fd [diff] |
FELIX-1777: Hitting backspace beyond last character causes LOUD BEEP git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@827428 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/assembly/src/main/distribution/text/etc/system.properties b/karaf/assembly/src/main/distribution/text/etc/system.properties index 40aa8bc..6e2cd79 100644 --- a/karaf/assembly/src/main/distribution/text/etc/system.properties +++ b/karaf/assembly/src/main/distribution/text/etc/system.properties
@@ -22,3 +22,4 @@ karaf.default.repository=system karaf.shell.init.script=${karaf.home}/etc/shell.init.script xml.catalog.files= +jline.nobell=true
diff --git a/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java b/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java index 045daf6..ed7e454 100644 --- a/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java +++ b/karaf/shell/console/src/main/java/org/apache/felix/karaf/shell/console/jline/Console.java
@@ -113,6 +113,9 @@ ) ); } + if (Boolean.getBoolean("jline.nobell")) { + reader.setBellEnabled(false); + } pipe = new Thread(new Pipe()); pipe.setName("gogo shell pipe thread"); pipe.setDaemon(true);