From 52dcf72d0b80b9f4c159744447b34d215a38d24c Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Wed, 20 Oct 2021 12:48:37 +0100 Subject: 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 --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index b3b4a90e..73988ba8 100644 --- a/terminal.h +++ b/terminal.h @@ -172,6 +172,7 @@ struct vt { uint8_t *data; size_t size; size_t idx; + bool bel; /* true if OSC string was terminated by BEL */ } osc; /* Start coordinate for current OSC-8 URI */ -- cgit v1.3