aboutsummaryrefslogtreecommitdiffstats
path: root/apps/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/client.c')
-rw-r--r--apps/client.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/client.c b/apps/client.c
index 541603b..93ade70 100644
--- a/apps/client.c
+++ b/apps/client.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.6 2008/02/15 03:32:07 james
+ * *** empty log message ***
+ *
* Revision 1.5 2008/02/14 10:34:47 james
* *** empty log message ***
*
@@ -56,7 +59,7 @@ server_msg (IPC_Msg * m, Context * c)
vt102_parse (c, m->term.term, m->term.len);
break;
case IPC_MSG_TYPE_STATUS:
- vt102_status_line (c->v, m->status.status);
+ cmd_new_status (c->d, c, m->status.status);
break;
default:
fprintf (stderr, "Unhandeled message type %d\n", m->hdr.type);
@@ -72,6 +75,7 @@ client (void)
ANSI a = { 0 };
Context c;
+
s = socket_connect ("socket");
if (!s)
@@ -85,6 +89,7 @@ client (void)
c.h = history_new (200);
c.l = NULL;
c.k = keydis_ipc_new (s);
+ c.d = cmd_new ();
terminal_register_handlers ();
a.terminal = terminal_open (0, 1);
@@ -95,6 +100,9 @@ client (void)
{
struct timeval tv = { 0, 100000 };
+ if (c.d->disconnect)
+ break;
+
FD_ZERO (&rfds);
FD_ZERO (&wfds);