mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -05:00
vt: disable the worst spamming logging
This commit is contained in:
parent
50c43be0d9
commit
a27868cd9f
1 changed files with 4 additions and 3 deletions
7
vt.c
7
vt.c
|
|
@ -184,11 +184,11 @@ action(struct terminal *term, enum action action, uint8_t c)
|
||||||
cell->dirty = true;
|
cell->dirty = true;
|
||||||
|
|
||||||
if (term->vt.utf8.idx > 0) {
|
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);
|
memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx);
|
||||||
cell->c[term->vt.utf8.idx] = '\0';
|
cell->c[term->vt.utf8.idx] = '\0';
|
||||||
} else {
|
} else {
|
||||||
LOG_DBG("print: ASCII: %c", c);
|
//LOG_DBG("print: ASCII: %c", c);
|
||||||
cell->c[0] = c;
|
cell->c[0] = c;
|
||||||
cell->c[1] = '\0';
|
cell->c[1] = '\0';
|
||||||
}
|
}
|
||||||
|
|
@ -254,6 +254,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
||||||
term->vt.utf8.left = 3;
|
term->vt.utf8.left = 3;
|
||||||
else
|
else
|
||||||
term->vt.utf8.left = 4;
|
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.data[term->vt.utf8.idx++] = c;
|
||||||
term->vt.utf8.left--;
|
term->vt.utf8.left--;
|
||||||
break;
|
break;
|
||||||
|
|
@ -265,7 +266,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
||||||
static bool
|
static bool
|
||||||
process_utf8(struct terminal *term, uint8_t c)
|
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.data[term->vt.utf8.idx++] = c;
|
||||||
term->vt.utf8.left--;
|
term->vt.utf8.left--;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue