/*
* $Log$
+ * Revision 1.14 2008/02/28 16:57:51 james
+ * *** empty log message ***
+ *
+ * Revision 1.13 2008/02/28 16:37:16 james
+ * *** empty log message ***
+ *
+ * Revision 1.12 2008/02/28 12:12:24 james
+ * *** empty log message ***
+ *
+ * Revision 1.11 2008/02/23 11:48:51 james
+ * *** empty log message ***
+ *
+ * Revision 1.10 2008/02/22 17:06:59 james
+ * *** empty log message ***
+ *
* Revision 1.9 2008/02/20 18:49:11 staffcvs
* *** empty log message ***
*
#include <malloc.h>
#include "clients.h"
-static void
+void
client_msg (IPC_Msg * m, Context * c)
{
switch (m->hdr.type)
break;
case IPC_MSG_TYPE_SETBAUD:
tty_set_baud (c->t, m->setbaud.baud);
+ tty_parse_reset (c);
+
+ log_f (c->l, "<baud changed to %d>", m->setbaud.baud);
break;
case IPC_MSG_TYPE_SENDBREAK:
tty_send_break (c->t);
case IPC_MSG_TYPE_SETFLOW:
tty_set_flow (c->t, m->setflow.flow);
break;
+ case IPC_MSG_TYPE_SETANSI:
+ vt102_set_ansi (c->v, m->setansi.ansi);
+ break;
case IPC_MSG_TYPE_HANGUP:
tty_hangup (c->t);
break;
+ case IPC_MSG_TYPE_SETSIZE:
+ vt102_resize (c, m->setsize.winsize);
+ break;
+ case IPC_MSG_TYPE_RESET:
+ vt102_reset (c);
+ break;
default:
fprintf (stderr, "Unhandeled message type %d\n", m->hdr.type);
}