mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
osc: implement change window title and icon
This commit is contained in:
parent
998ce52b7e
commit
3ba1721c0f
5 changed files with 65 additions and 10 deletions
5
vt.c
5
vt.c
|
|
@ -799,10 +799,13 @@ action(struct terminal *term, enum action action, uint8_t c)
|
|||
break;
|
||||
|
||||
case ACTION_OSC_PUT:
|
||||
term->vt.osc.data[term->vt.osc.idx++] = c;
|
||||
if (term->vt.osc.idx < (int)sizeof(term->vt.osc.data) - 1)
|
||||
term->vt.osc.data[term->vt.osc.idx++] = c;
|
||||
break;
|
||||
|
||||
case ACTION_OSC_END:
|
||||
assert(term->vt.osc.idx < sizeof(term->vt.osc.data));
|
||||
term->vt.osc.data[term->vt.osc.idx] = '\0';
|
||||
return osc_dispatch(term);
|
||||
|
||||
case ACTION_HOOK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue