Skip to content

Commit

Permalink
set a real pty for sending ssh commands
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Mar 2, 2016
1 parent e3561ac commit a86176d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arduino-core/src/cc/arduino/packages/ssh/SSH.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public boolean execSyncCommand(String command, PrintStream stdoutConsumer, Print
try {
channel = session.openChannel("exec");
((ChannelExec) channel).setCommand(command);
((ChannelExec) channel).setAgentForwarding(true);
((ChannelExec) channel).setPty(true);
((ChannelExec) channel).setPtyType( "xterm" );

channel.setInputStream(null);

Expand Down

0 comments on commit a86176d

Please sign in to comment.