mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 16:13:34 +00:00
rather than using an empty "" as the default window title, put the hostname
of the machine we are running on in there. makes my many green lines easier to deal with without using fiddly options to set it. ok nicm@
This commit is contained in:
parent
680f920b55
commit
6704c86301
7
screen.c
7
screen.c
@ -31,9 +31,14 @@ void screen_resize_y(struct screen *, u_int);
|
||||
void
|
||||
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
|
||||
{
|
||||
char hn[MAXHOSTNAMELEN];
|
||||
|
||||
s->grid = grid_create(sx, sy, hlimit);
|
||||
|
||||
s->title = xstrdup("");
|
||||
if (gethostname(hn, MAXHOSTNAMELEN) == 0)
|
||||
s->title = xstrdup(hn);
|
||||
else
|
||||
s->title = xstrdup("");
|
||||
|
||||
s->tabs = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user