diff options
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * 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 *** * @@ -89,8 +92,16 @@ html_render (FILE * f, CRT_CA c) if (c.attr & CRT_ATTR_BOLD) fg |= CRT_COLOR_INTENSITY; } +#if 1 fprintf (f, "<td bgcolor='#%06x'><font color='#%06x'>", colormap[bg], colormap[fg]); +#endif + + fprintf (f, "<tt>"); +#if 0 + fprintf (f, "<span style='color: #%06x; background-color: #%06x'>", + colormap[fg], colormap[bg]); +#endif if (c.attr & CRT_ATTR_UNDERLINE) fprintf (f, "<ul>"); @@ -112,7 +123,13 @@ html_render (FILE * f, CRT_CA c) { fprintf (f, "</font>"); } + fprintf (f, "</tt>"); +#if 1 fprintf (f, "</td>"); +#endif +#if 0 + fprintf (f, "</span>"); +#endif } static void @@ -121,6 +138,7 @@ html_draw (FILE * f, CRT * c) CRT_Pos p; int o; +// fprintf (f, "<pre>"); fprintf (f, "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"); for (p.y = 0; p.y < CRT_ROWS; ++p.y) { @@ -131,8 +149,10 @@ html_draw (FILE * f, CRT * c) html_render (f, c->screen[o]); } fprintf (f, "</tr>\n"); +// fprintf(f,"\n"); } - fprintf (f, "</table>\n"); + fprintf (f, "</table>"); +// fprintf (f, "</pre>\n"); } |