/*
* $Log$
+ * Revision 1.11 2008/02/20 20:16:07 james
+ * *** empty log message ***
+ *
+ * Revision 1.10 2008/02/20 19:44:37 james
+ * @@
+ *
+ * Revision 1.9 2008/02/20 18:49:11 staffcvs
+ * *** empty log message ***
+ *
* Revision 1.8 2008/02/20 18:33:37 james
* *** empty log message ***
*
#include <sys/utsname.h>
#include <sys/stat.h>
#include <dirent.h>
+#include <string.h>
+#include <strings.h>
+#include <malloc.h>
#include "mainloop.h"
oflags['p']++;
}
+ if (oflags['s'] && !oflags['F'])
+ {
+ daemon (1, 0); /*incase socket is relative path, unlink then will fail */
+ }
+
if (oflags['s'] || oflags['t'])
{
}
- if (oflags['s'] && !oflags['F'])
- {
- daemon (1, 0); /*incase socket is relative path, unlink then will fail */
- }
if (oflags['c'] || oflags['t'])
{
if (oflags['H'])
{
- fatal_moan ("fix a bug in HTML dispatcher before this works");
+ ansi=ansi_new_html(stdout);
}
else
{
- ansi = (ANSI *) malloc (sizeof (ANSI));
- memset (ansi, 0, sizeof (ANSI));
-
terminal_register_handlers ();
- ansi->terminal = terminal_open (0, 1);
- ansi_reset (ansi, NULL);
+ ansi=ansi_new_from_terminal(terminal_open(0,1));
+ ansi->reset(ansi, NULL);
}
}
if (ansi)
{
- ansi_terminal_reset (ansi);
+ ansi->close(ansi);
terminal_atexit ();
}
if (client_socket)
socket_free (client_socket);
+ if (!oflags['H'])
printf ("you have now exited sympathy\n");
return 0;
}