/*
* $Log$
+ * Revision 1.14 2008/02/27 01:31:14 james
+ * *** empty log message ***
+ *
+ * Revision 1.13 2008/02/26 23:56:12 james
+ * *** empty log message ***
+ *
+ * Revision 1.12 2008/02/26 23:23:16 james
+ * *** empty log message ***
+ *
* Revision 1.11 2008/02/24 00:43:55 james
* *** empty log message ***
*
#include "clients.h"
+Context *context;
+
typedef struct
{
int nclients;
void
mainloop (TTY * tty, Socket * server_socket, Socket * client_socket,
- ANSI * ansi, Log * log, int nhistory)
+ ANSI * ansi, Log * log, int nhistory,int width)
{
fd_set rfds, wfds;
Context c = { 0 };
Clients *clients;
+ context = &c;
+
c.tp = tty_parser_new ();
c.u = utf8_new ();
- c.v = vt102_new ();
+ c.v = vt102_new (width);
c.h = history_new (nhistory);
c.l = log;
/* are we being fed by a tty or a socket */