felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccust...@apache.org
Subject svn commit: r834177 - /felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
Date Mon, 09 Nov 2009 19:12:44 GMT
Author: ccustine
Date: Mon Nov  9 19:12:44 2009
New Revision: 834177

URL: http://svn.apache.org/viewvc?rev=834177&view=rev
Log:
FELIX-1857 - Backspace not working when using admin:connect

Modified:
    felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java

Modified: felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java?rev=834177&r1=834176&r2=834177&view=diff
==============================================================================
--- felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
(original)
+++ felix/trunk/karaf/shell/ssh/src/main/java/org/apache/felix/karaf/shell/ssh/SshAction.java
Mon Nov  9 19:12:44 2009
@@ -24,6 +24,7 @@
 import org.apache.sshd.ClientChannel;
 import org.apache.sshd.ClientSession;
 import org.apache.sshd.SshClient;
+import org.apache.sshd.client.channel.ChannelShell;
 import org.apache.sshd.client.future.ConnectFuture;
 import org.apache.sshd.common.util.NoCloseInputStream;
 import org.apache.sshd.common.util.NoCloseOutputStream;
@@ -114,6 +115,7 @@
 
                 ClientChannel channel = session.createChannel("shell");
                 channel.setIn(new NoCloseInputStream(System.in));
+                ((ChannelShell) channel).setupSensibleDefaultPty();
                 channel.setOut(new NoCloseOutputStream(System.out));
                 channel.setErr(new NoCloseOutputStream(System.err));
                 channel.open();



Mime
View raw message