Skip to content

Commit

Permalink
Immediately pass on window title
Browse files Browse the repository at this point in the history
Close #32
  • Loading branch information
martanne committed Sep 29, 2016
1 parent c38c27b commit 2673e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,10 @@ settitle(Client *c) {
char *term, *t = title;
if (!t && sel == c && *c->title)
t = c->title;
if (t && (term = getenv("TERM")) && !strstr(term, "linux"))
if (t && (term = getenv("TERM")) && !strstr(term, "linux")) {
printf("\033]0;%s\007", t);
fflush(stdout);
}
}

static void
Expand Down

0 comments on commit 2673e9d

Please sign in to comment.