diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-29 22:59:24 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-29 22:59:24 +0000 |
| commit | 616896e2a52e0223d83f2625f96c67093b88e463 (patch) | |
| tree | 98bcc868d1c0b084dd8047f21f5d603c02057278 | |
| parent | vt: there are actually many state transitions that are no-ops (diff) | |
csi/ocs/vt: log unhandled/unrecognized sequences as debug messages
Having them as error messages was nice when we where still missing
lots of sequences.
Now we don't anymore, and these just spam stdout as well as syslog
when e.g. cat:ing binary data.
| -rw-r--r-- | csi.c | 4 | ||||
| -rw-r--r-- | osc.c | 2 | ||||
| -rw-r--r-- | vt.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -18,8 +18,8 @@ #define min(x, y) ((x) < (y) ? (x) : (y)) -#define UNHANDLED() LOG_ERR("unhandled: %s", csi_as_string(term, final)) -#define UNHANDLED_SGR() LOG_ERR("unhandled: %s", csi_as_string(term, 'm')) +#define UNHANDLED() LOG_DBG("unhandled: %s", csi_as_string(term, final)) +#define UNHANDLED_SGR() LOG_DBG("unhandled: %s", csi_as_string(term, 'm')) static void sgr_reset(struct terminal *term) @@ -12,7 +12,7 @@ #include "terminal.h" #include "vt.h" -#define UNHANDLED() LOG_ERR("unhandled: OSC: %.*s", (int)term->vt.osc.idx, term->vt.osc.data) +#define UNHANDLED() LOG_DBG("unhandled: OSC: %.*s", (int)term->vt.osc.idx, term->vt.osc.data) static void osc_to_clipboard(struct terminal *term, const char *target, @@ -14,7 +14,7 @@ #define max(x, y) ((x) > (y) ? (x) : (y)) -#define UNHANDLED() LOG_ERR("unhandled: %s", esc_as_string(term, final)) +#define UNHANDLED() LOG_DBG("unhandled: %s", esc_as_string(term, final)) /* https://vt100.net/emu/dec_ansi_parser */ |
