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.
This commit is contained in:
Daniel Eklöf 2019-11-29 23:59:24 +01:00
parent 3026b8981a
commit 616896e2a5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 4 deletions

4
csi.c
View file

@ -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)

2
osc.c
View file

@ -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,

2
vt.c
View file

@ -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 */