version 1.33, 2009/09/10 17:16:24 |
version 1.34, 2009/09/20 14:58:12 |
|
|
screen_init(&c->status, c->tty.sx, 1, 0); |
screen_init(&c->status, c->tty.sx, 1, 0); |
|
|
if (gettimeofday(&c->status_timer, NULL) != 0) |
if (gettimeofday(&c->status_timer, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday failed"); |
memcpy(&stdgc, &grid_default_cell, sizeof gc); |
memcpy(&stdgc, &grid_default_cell, sizeof gc); |
colour_set_fg(&stdgc, options_get_number(&s->options, "status-fg")); |
colour_set_fg(&stdgc, options_get_number(&s->options, "status-fg")); |
colour_set_bg(&stdgc, options_get_number(&s->options, "status-bg")); |
colour_set_bg(&stdgc, options_get_number(&s->options, "status-bg")); |
|
|
case 'H': |
case 'H': |
if (ptr == NULL) { |
if (ptr == NULL) { |
if (gethostname(tmp, sizeof tmp) != 0) |
if (gethostname(tmp, sizeof tmp) != 0) |
fatal("gethostname"); |
fatal("gethostname failed"); |
ptr = tmp; |
ptr = tmp; |
} |
} |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
|
|
tv.tv_usec = (delay % 1000) * 1000L; |
tv.tv_usec = (delay % 1000) * 1000L; |
|
|
if (gettimeofday(&c->message_timer, NULL) != 0) |
if (gettimeofday(&c->message_timer, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday failed"); |
timeradd(&c->message_timer, &tv, &c->message_timer); |
timeradd(&c->message_timer, &tv, &c->message_timer); |
|
|
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); |
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); |