osc: terminate reply with ST rather than BEL

This is the preferred terminator anyway, and at least Emacs likes it a
whole lot better.
This commit is contained in:
Daniel Eklöf 2019-07-18 19:54:30 +02:00
parent 6c1b2f3c81
commit 95ff37afd7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
osc.c
View file

@ -18,7 +18,7 @@ osc_query(struct terminal *term, unsigned param)
case 11: {
char reply[16];
snprintf(
reply, sizeof(reply), "\033]%u;%06x\x07",
reply, sizeof(reply), "\033]%u;%06x\033\\",
param,
(param == 10 ? term->foreground : term->background) & 0xffffff);
vt_to_slave(term, reply, strlen(reply));