From 95ff37afd7dffdd97c5b076be08595f688459222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 18 Jul 2019 19:54:30 +0200 Subject: [PATCH] osc: terminate reply with ST rather than BEL This is the preferred terminator anyway, and at least Emacs likes it a whole lot better. --- osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));