aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-18 17:54:30 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-18 17:54:30 +0000
commit95ff37afd7dffdd97c5b076be08595f688459222 (patch)
tree0bc7b8599ab975a437afd6a1a6e727ee72a39633
parentcsi: recognize, but ignore, modifyOtherKeys et al resource setters (diff)
osc: terminate reply with ST rather than BEL
This is the preferred terminator anyway, and at least Emacs likes it a whole lot better.
-rw-r--r--osc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osc.c b/osc.c
index 6b226dfd..5697b230 100644
--- a/osc.c
+++ b/osc.c
@@ -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));