mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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
This commit is contained in:
parent
6dfacb9c08
commit
52dcf72d0b
3 changed files with 19 additions and 6 deletions
1
vt.c
1
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue