[hotssh] gssh: Fix pty size requests



commit 3ed61b7d55ae3083cfa6997effd0628c7235890c
Author: Colin Walters <walters verbum org>
Date:   Thu Dec 5 09:07:31 2013 -0500

    gssh: Fix pty size requests
    
    Don't request a *new* pty with a specific size, just change the size
    of our current one.

 libgssh/gssh-channel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgssh/gssh-channel.c b/libgssh/gssh-channel.c
index caf695b..5bef3bf 100644
--- a/libgssh/gssh-channel.c
+++ b/libgssh/gssh-channel.c
@@ -95,8 +95,8 @@ _gssh_channel_iteration (GSshChannel              *self)
   if (self->pty_size_task)
     {
       GTask *orig_pty_size_task = self->pty_size_task;
-      rc = ssh_channel_request_pty_size (self->libsshchannel, "xterm",
-                                         self->pty_width, self->pty_height);
+      rc = ssh_channel_change_pty_size (self->libsshchannel,
+                                        self->pty_width, self->pty_height);
       if (rc == SSH_AGAIN)
         ;
       else 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]