chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3422c46
)
*** empty log message ***
author
staffcvs
<staffcvs>
Wed, 20 Feb 2008 23:31:48 +0000
(23:31 +0000)
committer
staffcvs
<staffcvs>
Wed, 20 Feb 2008 23:31:48 +0000
(23:31 +0000)
src/html.c
patch
|
blob
|
history
diff --git
a/src/html.c
b/src/html.c
index b1d6ce953da599b0b9d83e92ab2cf3609c5bfde6..5b79219affdb16c45e4460d603c665841321865d 100644
(file)
--- a/
src/html.c
+++ b/
src/html.c
@@
-10,6
+10,9
@@
static char rcsid[] = "$Id$";
/*
* $Log$
/*
* $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 ***
*
* 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 (c.attr & CRT_ATTR_BOLD)
fg |= CRT_COLOR_INTENSITY;
}
+#if 1
fprintf (f, "<td bgcolor='#%06x'><font color='#%06x'>", colormap[bg],
colormap[fg]);
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>");
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, "</font>");
}
+ fprintf (f, "</tt>");
+#if 1
fprintf (f, "</td>");
fprintf (f, "</td>");
+#endif
+#if 0
+ fprintf (f, "</span>");
+#endif
}
static void
}
static void
@@
-121,6
+138,7
@@
html_draw (FILE * f, CRT * c)
CRT_Pos p;
int o;
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)
{
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");
html_render (f, c->screen[o]);
}
fprintf (f, "</tr>\n");
+// fprintf(f,"\n");
}
}
- fprintf (f, "</table>\n");
+ fprintf (f, "</table>");
+// fprintf (f, "</pre>\n");
}
}