aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/trilead/ssh2/channel
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-01-23 14:19:46 +0000
committerKenny Root <kenny@the-b.org>2009-01-23 14:19:46 +0000
commita7fbe0bb6523c8659733b21c4bf957278e83ebfc (patch)
tree43d8ebaf959bba193415843039ce4572e4f677fd /src/com/trilead/ssh2/channel
parentaed1876f36b34ee62e1537d42fcb339c6baa05b0 (diff)
downloadconnectbot-a7fbe0bb6523c8659733b21c4bf957278e83ebfc.tar.gz
connectbot-a7fbe0bb6523c8659733b21c4bf957278e83ebfc.tar.bz2
connectbot-a7fbe0bb6523c8659733b21c4bf957278e83ebfc.zip
Comply with RFC 4254 on window-change packet
* Always send false for "want reply" * We don't need to wait since a reply should not be sent. * Allow the sending of (informational) pixel dimensions.
Diffstat (limited to 'src/com/trilead/ssh2/channel')
-rw-r--r--src/com/trilead/ssh2/channel/ChannelManager.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/com/trilead/ssh2/channel/ChannelManager.java b/src/com/trilead/ssh2/channel/ChannelManager.java
index e582a52..fb4beae 100644
--- a/src/com/trilead/ssh2/channel/ChannelManager.java
+++ b/src/com/trilead/ssh2/channel/ChannelManager.java
@@ -678,7 +678,8 @@ public class ChannelManager implements MessageHandler
}
- public void resizePTY(Channel c, int width, int height) throws IOException {
+ public void resizePTY(Channel c, int term_width_characters, int term_height_characters,
+ int term_width_pixels, int term_height_pixels) throws IOException {
PacketSessionPtyResize spr;
synchronized (c) {
@@ -686,7 +687,8 @@ public class ChannelManager implements MessageHandler
throw new IOException("Cannot request PTY on this channel ("
+ c.getReasonClosed() + ")");
- spr = new PacketSessionPtyResize(c.remoteID, true, width, height);
+ spr = new PacketSessionPtyResize(c.remoteID, term_width_characters, term_height_characters,
+ term_width_pixels, term_height_pixels);
c.successCounter = c.failedCounter = 0;
}
@@ -696,14 +698,6 @@ public class ChannelManager implements MessageHandler
+ c.getReasonClosed() + ")");
tm.sendMessage(spr.getPayload());
}
-
- try {
- //waitForChannelSuccessOrFailure(c);
- this.waitForChannelRequestResult(c);
- } catch (IOException e) {
- throw (IOException) new IOException("PTY request failed")
- .initCause(e);
- }
}