version 1.33, 2015/01/11 04:14:40 |
version 1.34, 2015/08/28 17:11:12 |
|
|
void |
void |
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) |
screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit) |
{ |
{ |
char host[HOST_NAME_MAX+1]; |
|
|
|
s->grid = grid_create(sx, sy, hlimit); |
s->grid = grid_create(sx, sy, hlimit); |
|
s->title = xstrdup(""); |
if (gethostname(host, sizeof(host)) == 0) |
|
s->title = xstrdup(host); |
|
else |
|
s->title = xstrdup(""); |
|
|
|
s->cstyle = 0; |
s->cstyle = 0; |
s->ccolour = xstrdup(""); |
s->ccolour = xstrdup(""); |