diff options
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1145,9 +1145,18 @@ osc_dispatch(struct terminal *term) char *string = (char *)&term->vt.osc.data[data_ofs]; switch (param) { - case 0: term_set_window_title(term, string); break; /* icon + title */ - case 1: break; /* icon */ - case 2: term_set_window_title(term, string); break; /* title */ + case 0: /* icon + title */ + term_set_window_title(term, string); + term_set_icon(term, string); + break; + + case 1: /* icon */ + term_set_icon(term, string); + break; + + case 2: /* title */ + term_set_window_title(term, string); + break; case 4: { /* Set color<idx> */ |
