/*
* $Log$
+ * Revision 1.6 2008/02/20 23:42:05 staffcvs
+ * *** empty log message ***
+ *
+ * Revision 1.5 2008/02/20 23:31:48 staffcvs
+ * *** empty log message ***
+ *
* Revision 1.4 2008/02/20 22:54:22 staffcvs
* *** empty log message ***
*
if (c.attr & CRT_ATTR_BOLD)
fg |= CRT_COLOR_INTENSITY;
}
+#ifdef CSS
+ fprintf (f, "<span style='color: #%06x; background-color: #%06x'>",
+ colormap[fg], colormap[bg]);
+#else
fprintf (f, "<td bgcolor='#%06x'><font color='#%06x'>", colormap[bg],
colormap[fg]);
+ fprintf (f, "<tt>");
+#endif
if (c.attr & CRT_ATTR_UNDERLINE)
fprintf (f, "<ul>");
{
fprintf (f, "</font>");
}
+#ifdef CSS
+ fprintf (f, "</span>");
+#else
+ fprintf (f, "</tt>");
fprintf (f, "</td>");
+#endif
}
static void
CRT_Pos p;
int o;
+#ifdef CSS
+ fprintf (f, "<pre>");
+#else
fprintf (f, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
+#endif
for (p.y = 0; p.y < CRT_ROWS; ++p.y)
{
o = CRT_ADDR (p.y, 0);
+#ifndef CSS
fprintf (f, "<tr>");
+#endif
for (p.x = 0; p.x < CRT_COLS; ++p.x, ++o)
{
html_render (f, c->screen[o]);
}
+#ifdef CSS
+ fprintf (f, "\n");
+#else
fprintf (f, "</tr>\n");
+#endif
}
- fprintf (f, "</table>\n");
+#ifdef CSS
+ fprintf (f, "</pre>\n");
+#else
+ fprintf (f, "</table>");
+#endif
}