aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-10 14:04:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-10 14:04:25 +0000
commit48efc50c23a957ae8908a32bf50d386a8098cea0 (patch)
treeb751f59c4f76cb9116192b3f4e80a7e62cbd1186
parentvt/csi: use vt_param_get() (diff)
vt: escape '\E' properly when logging an ESC sequence
-rw-r--r--vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index a781329f..1d5a9b93 100644
--- a/vt.c
+++ b/vt.c
@@ -571,7 +571,7 @@ static const char *
esc_as_string(struct terminal *term, uint8_t final)
{
static char msg[1024];
- int c = snprintf(msg, sizeof(msg), "\E");
+ int c = snprintf(msg, sizeof(msg), "\\E");
if (term->vt.private != 0)
c += snprintf(&msg[c], sizeof(msg) - c, "%c", term->vt.private);