mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: escape '\E' properly when logging an ESC sequence
This commit is contained in:
parent
454133033c
commit
48efc50c23
1 changed files with 1 additions and 1 deletions
2
vt.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue