aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-18 19:54:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-18 19:54:42 +0000
commita27868cd9f6bd5f1b43a67e63c70d2efa685bc32 (patch)
tree397cd4c5678ad793b92baaaf963ff9c4335341dd
parentgrid: track both linear and row,col cursor (diff)
vt: disable the worst spamming logging
-rw-r--r--vt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vt.c b/vt.c
index 06d4a1a0..da211e8c 100644
--- a/vt.c
+++ b/vt.c
@@ -184,11 +184,11 @@ action(struct terminal *term, enum action action, uint8_t c)
cell->dirty = true;
if (term->vt.utf8.idx > 0) {
- LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data);
+ //LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data);
memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx);
cell->c[term->vt.utf8.idx] = '\0';
} else {
- LOG_DBG("print: ASCII: %c", c);
+ //LOG_DBG("print: ASCII: %c", c);
cell->c[0] = c;
cell->c[1] = '\0';
}
@@ -254,6 +254,7 @@ action(struct terminal *term, enum action action, uint8_t c)
term->vt.utf8.left = 3;
else
term->vt.utf8.left = 4;
+ //LOG_DBG("begin UTF-8 (%zu chars)", term->vt.utf8.left);
term->vt.utf8.data[term->vt.utf8.idx++] = c;
term->vt.utf8.left--;
break;
@@ -265,7 +266,7 @@ action(struct terminal *term, enum action action, uint8_t c)
static bool
process_utf8(struct terminal *term, uint8_t c)
{
- LOG_DBG("UTF-8: 0x%02x", c);
+ //LOG_DBG("UTF-8: 0x%02x", c);
term->vt.utf8.data[term->vt.utf8.idx++] = c;
term->vt.utf8.left--;