aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sympathy.c
diff options
context:
space:
mode:
authorjames <>2008-02-20 20:16:07 +0000
committerjames <>2008-02-20 20:16:07 +0000
commit72bf4c274834b91ce599ae272fb5159913b8e033 (patch)
treee84fcc5c7fc3dfa04ddb840f04afa5e15233e739 /apps/sympathy.c
parent8e2bb9b2970ecb7ca3919b074e4474b878bd02bb (diff)
downloadsympathy-72bf4c274834b91ce599ae272fb5159913b8e033.tar.gz
sympathy-72bf4c274834b91ce599ae272fb5159913b8e033.tar.bz2
sympathy-72bf4c274834b91ce599ae272fb5159913b8e033.zip
*** empty log message ***
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r--apps/sympathy.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index df351f3..4ea7bf0 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -10,6 +10,9 @@ 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
* @@
*
@@ -468,15 +471,12 @@ 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=ansi_new_from_terminal(terminal_open(0,1));
ansi->reset(ansi, NULL);
}
}
@@ -499,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;
}