aboutsummaryrefslogtreecommitdiffstats
path: root/src/vt102.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vt102.c')
-rw-r--r--src/vt102.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vt102.c b/src/vt102.c
index 14a8327..b82556f 100644
--- a/src/vt102.c
+++ b/src/vt102.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.67 2010/07/27 14:49:35 james
+ * add support for byte logging
+ *
* Revision 1.66 2008/03/07 13:16:02 james
* *** empty log message ***
*
@@ -443,10 +446,9 @@ vt102_log_line (Context * c, int line)
CRT_Pos p = { 0, line };
char logbuf[4 * (VT102_MAX_COLS + 1)], *logptr = logbuf;
- if (!c->l)
+ if (!c->l || c->byte_logging)
return;
-
for (; e.x > 0; --e.x) {
if (c->v->crt.screen[CRT_ADDR_POS (&e)].chr != ' ')
break;
@@ -1657,6 +1659,7 @@ vt102_parse_char (Context * c, int ch)
p->cmd_termination, v->pos.x, v->pos.y, v->pending_wrap);
#endif
+
if (ch == SYM_CHAR_RESET) {
vt102_reset_state (c);
} else if (p->in_cmd && !ctrl_chr (ch, p->cmd_termination)) {