aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-10-20 11:48:37 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-10-20 11:48:37 +0000
commit52dcf72d0b80b9f4c159744447b34d215a38d24c (patch)
treedfa4df023068a089b47e7b6278f576bfe43af325 /vt.c
parentMerge branch 'nordiq' (diff)
osc: use BEL terminator in OSC replies to BEL-terminated OSC queries
This matches the documented (and observed) behavior in xterm: > XTerm accepts either BEL or ST for terminating OSC sequences, and > when returning information, uses the same terminator used in a query -- https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vt.c b/vt.c
index b34f8fbe..687be912 100644
--- a/vt.c
+++ b/vt.c
@@ -579,6 +579,7 @@ action_osc_end(struct terminal *term, uint8_t c)
if (!osc_ensure_size(term, term->vt.osc.idx + 1))
return;
term->vt.osc.data[term->vt.osc.idx] = '\0';
+ term->vt.osc.bel = c == '\a';
osc_dispatch(term);
}