Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2020-02-03 14:01:25 +00:00
4 changed files with 13 additions and 12 deletions

View File

@ -151,11 +151,16 @@ screen_set_cursor_colour(struct screen *s, const char *colour)
}
/* Set screen title. */
void
int
screen_set_title(struct screen *s, const char *title)
{
char *cp;
if (!utf8_isvalid(title))
return (0);
free(s->title);
utf8_stravis(&s->title, title, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
s->title = xstrdup(title);
return (1);
}
/* Set screen path. */