mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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:
parent
3026b8981a
commit
616896e2a5
3 changed files with 4 additions and 4 deletions
4
csi.c
4
csi.c
|
|
@ -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
2
osc.c
|
|
@ -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
2
vt.c
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue