diff options
author | Kenny Root <kenny@the-b.org> | 2009-01-23 14:19:46 +0000 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2009-01-23 14:19:46 +0000 |
commit | b1f8f94ff046f59958bb5af0534aab81d1d8d9d4 (patch) | |
tree | 39e45f6d7c074a110ab9704f38c1a566c5e8c343 /lib/src/main/java/com/trilead/ssh2/channel | |
parent | 569080860fc43408b0c009508b7ad452120f1a6c (diff) | |
download | sshlib-b1f8f94ff046f59958bb5af0534aab81d1d8d9d4.tar.gz sshlib-b1f8f94ff046f59958bb5af0534aab81d1d8d9d4.tar.bz2 sshlib-b1f8f94ff046f59958bb5af0534aab81d1d8d9d4.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 'lib/src/main/java/com/trilead/ssh2/channel')
-rw-r--r-- | lib/src/main/java/com/trilead/ssh2/channel/ChannelManager.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/channel/ChannelManager.java b/lib/src/main/java/com/trilead/ssh2/channel/ChannelManager.java index e582a52..fb4beae 100644 --- a/lib/src/main/java/com/trilead/ssh2/channel/ChannelManager.java +++ b/lib/src/main/java/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);
- }
}
|