term: track current window title in terminal struct

This commit is contained in:
Daniel Eklöf 2019-07-21 17:35:53 +02:00
parent 326808f94d
commit 97350f6488
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 17 additions and 4 deletions

6
osc.c
View file

@ -234,9 +234,9 @@ osc_dispatch(struct terminal *term)
}
switch (param) {
case 0: render_set_title(term, string); break; /* icon + title */
case 1: break; /* icon */
case 2: render_set_title(term, string); break; /* title */
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 52: osc_selection(term, string); break;
case 104: /* Reset Color Number 'c' */