Skip to content

Commit a86176d

Browse files
committed
set a real pty for sending ssh commands
1 parent e3561ac commit a86176d

File tree

1 file changed

+3
-0
lines changed
  • arduino-core/src/cc/arduino/packages/ssh

1 file changed

+3
-0
lines changed

arduino-core/src/cc/arduino/packages/ssh/SSH.java

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public boolean execSyncCommand(String command, PrintStream stdoutConsumer, Print
5858
try {
5959
channel = session.openChannel("exec");
6060
((ChannelExec) channel).setCommand(command);
61+
((ChannelExec) channel).setAgentForwarding(true);
62+
((ChannelExec) channel).setPty(true);
63+
((ChannelExec) channel).setPtyType( "xterm" );
6164

6265
channel.setInputStream(null);
6366

0 commit comments

Comments
 (0)