version 1.139, 2015/08/28 16:10:46 |
version 1.140, 2015/08/28 17:11:12 |
|
|
window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit) |
window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit) |
{ |
{ |
struct window_pane *wp; |
struct window_pane *wp; |
|
char host[HOST_NAME_MAX + 1]; |
|
|
wp = xcalloc(1, sizeof *wp); |
wp = xcalloc(1, sizeof *wp); |
wp->window = w; |
wp->window = w; |
|
|
|
|
screen_init(&wp->base, sx, sy, hlimit); |
screen_init(&wp->base, sx, sy, hlimit); |
wp->screen = &wp->base; |
wp->screen = &wp->base; |
|
|
|
if (gethostname(host, sizeof host) == 0) |
|
screen_set_title(&wp->base, host); |
|
|
input_init(wp); |
input_init(wp); |
|
|