/*
* $Log$
+ * Revision 1.25 2008/02/20 19:44:37 james
+ * @@
+ *
+ * Revision 1.24 2008/02/20 19:36:06 james
+ * @@
+ *
* Revision 1.23 2008/02/20 19:25:09 james
* *** empty log message ***
*
if (!a->terminal)
- return;
+ return 0;
red = a->terminal->recv (a->terminal, buf, sizeof (buf));
if (red <= 0)
static void ansi_free(ANSI *a)
{
+ a->terminal_reset(a);
+ if (a->terminal)
+ a->terminal->close(a->terminal);
+
+ free(a);
}