/*
* $Log$
+ * Revision 1.7 2008/02/28 22:00:42 james
+ * *** empty log message ***
+ *
* Revision 1.6 2008/02/28 16:57:51 james
* *** empty log message ***
*
int
-cmd_parse (Cmd * c, Context * ctx, char *buf)
+cmd_parse (Cmd * c, Context * ctx,ANSI *a, char *buf)
{
if (!strcmp (buf, "quit"))
c->disconnect++;
ctx->k->hangup (ctx->k, ctx);
else if (!strcmp (buf, "reset"))
ctx->k->reset (ctx->k, ctx);
+ else if (!strcmp (buf, "expand")) {
+ int w=a->terminal->size.x;
+ int h=a->terminal->size.y-1;
+ ctx->k->set_size (ctx->k, ctx, w,h);
+ }
else if (!strncmp (buf, "width", 5))
ctx->k->set_size (ctx->k, ctx, atoi (buf + 5), 0);
else if (!strncmp (buf, "height", 6))
}
int
-cmd_key (Cmd * c, Context * ctx, int key)
+cmd_key (Cmd * c, Context * ctx,ANSI *a, int key)
{
if (c->error)
if (key == 13)
{
- if (cmd_parse (c, ctx, c->buf + 1))
+ if (cmd_parse (c, ctx, a,c->buf + 1))
{
c->error++;
}