chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
apps
/
mainloop.c
diff --git
a/apps/mainloop.c
b/apps/mainloop.c
index 73b2236695bb8f8d86dee60b278b5b5768be3d33..07290e1a4125207adad489a9caf08df37ba2aed0 100644
(file)
--- a/
apps/mainloop.c
+++ b/
apps/mainloop.c
@@
-11,6
+11,15
@@
static char rcsid[] =
/*
* $Log$
/*
* $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 ***
*
* Revision 1.11 2008/02/24 00:43:55 james
* *** empty log message ***
*
@@
-88,6
+97,8
@@
static char rcsid[] =
#include "clients.h"
#include "clients.h"
+Context *context;
+
typedef struct
{
int nclients;
typedef struct
{
int nclients;
@@
-383,16
+394,18
@@
msg_from_server (ANSI * a, IPC_Msg * m, Context * c)
void
mainloop (TTY * tty, Socket * server_socket, Socket * client_socket,
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;
{
fd_set rfds, wfds;
Context c = { 0 };
Clients *clients;
+ context = &c;
+
c.tp = tty_parser_new ();
c.u = utf8_new ();
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 */
c.h = history_new (nhistory);
c.l = log;
/* are we being fed by a tty or a socket */