summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index 2776f145..14906cc3 100644
--- a/tty.c
+++ b/tty.c
@@ -427,6 +427,7 @@ tty_add(struct tty *tty, const char *buf, size_t len)
evbuffer_add(tty->out, buf, len);
log_debug("%s: %.*s", c->name, (int)len, (const char *)buf);
+ tty->written += len;
if (tty_log_fd != -1)
write(tty_log_fd, buf, len);