static int raw_bufsize;
static void *frontend;
-static void raw_size(void);
+static void raw_size(int width, int height);
static void c_write(char *buf, int len)
{
/*
* Called to set the size of the window
*/
-static void raw_size(void)
+static void raw_size(int width, int height)
{
/* Do nothing! */
return;
static int rlogin_term_width, rlogin_term_height;
static void *frontend;
-static void rlogin_size(void);
+static void rlogin_size(int width, int height);
static void c_write(char *buf, int len)
{
c = *data++;
len--;
if (c == '\x80')
- rlogin_size();
+ rlogin_size(rlogin_term_width, rlogin_term_height);
/*
* We should flush everything (aka Telnet SYNCH) if we see
* 0x02, and we should turn off and on _local_ flow control
static void (*ssh_protocol) (unsigned char *in, int inlen, int ispkt);
static void ssh1_protocol(unsigned char *in, int inlen, int ispkt);
static void ssh2_protocol(unsigned char *in, int inlen, int ispkt);
-static void ssh_size(void);
+static void ssh_size(int width, int height);
static void ssh_special(Telnet_Special);
static int ssh2_try_send(struct ssh_channel *c);
static void ssh2_add_channel_data(struct ssh_channel *c, char *buf,
ssh_state = SSH_STATE_SESSION;
if (size_needed)
- ssh_size();
+ ssh_size(ssh_term_width, ssh_term_height);
if (eof_needed)
ssh_special(TS_EOF);
ssh_state = SSH_STATE_SESSION;
if (size_needed)
- ssh_size();
+ ssh_size(ssh_term_width, ssh_term_height);
if (eof_needed)
ssh_special(TS_EOF);
return "<unknown>";
}
-static void telnet_size(void);
+static void telnet_size(int width, int height);
struct Opt {
int send; /* what we initially send */
static void activate_option(struct Opt *o)
{
if (o->send == WILL && o->option == TELOPT_NAWS)
- telnet_size();
+ telnet_size(telnet_term_width, telnet_term_height);
if (o->send == WILL &&
(o->option == TELOPT_NEW_ENVIRON ||
o->option == TELOPT_OLD_ENVIRON)) {