X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=apps%2Fsympathy.c;h=4ea7bf00e730fd8a81ceda048e4d259295418eae;hb=3422c467b484c200c8486da77678a7f4f58d4d0f;hp=94105a3437bd9ffc0c5a75e449e63d508f18e3a8;hpb=1d00929f790c7e65eac1bc90ba9d7e520a1b7462;p=sympathy.git diff --git a/apps/sympathy.c b/apps/sympathy.c index 94105a3..4ea7bf0 100644 --- a/apps/sympathy.c +++ b/apps/sympathy.c @@ -10,6 +10,12 @@ static char rcsid[] = "$Id$"; /* * $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 *** * @@ -465,16 +471,13 @@ main (int argc, char *argv[]) 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); } } @@ -482,7 +485,7 @@ main (int argc, char *argv[]) if (ansi) { - ansi_terminal_reset (ansi); + ansi->close(ansi); terminal_atexit (); } @@ -496,6 +499,7 @@ main (int argc, char *argv[]) if (client_socket) socket_free (client_socket); + if (!oflags['H']) printf ("you have now exited sympathy\n"); return 0; }