version 1.22, 2009/07/30 20:41:48 |
version 1.23, 2009/08/05 16:26:38 |
|
|
if (gettimeofday(&c->status_timer, NULL) != 0) |
if (gettimeofday(&c->status_timer, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday"); |
memcpy(&stdgc, &grid_default_cell, sizeof gc); |
memcpy(&stdgc, &grid_default_cell, sizeof gc); |
stdgc.bg = options_get_number(&s->options, "status-fg"); |
stdgc.fg = options_get_number(&s->options, "status-fg"); |
stdgc.fg = options_get_number(&s->options, "status-bg"); |
stdgc.bg = options_get_number(&s->options, "status-bg"); |
stdgc.attr |= options_get_number(&s->options, "status-attr"); |
stdgc.attr |= options_get_number(&s->options, "status-attr"); |
|
|
yy = c->tty.sy - 1; |
yy = c->tty.sy - 1; |
|
|
len = c->tty.sx; |
len = c->tty.sx; |
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
gc.bg = options_get_number(&s->options, "message-fg"); |
gc.fg = options_get_number(&s->options, "message-fg"); |
gc.fg = options_get_number(&s->options, "message-bg"); |
gc.bg = options_get_number(&s->options, "message-bg"); |
gc.attr |= options_get_number(&s->options, "message-attr"); |
gc.attr |= options_get_number(&s->options, "message-attr"); |
|
|
screen_write_start(&ctx, NULL, &c->status); |
screen_write_start(&ctx, NULL, &c->status); |
|
|
len = c->tty.sx; |
len = c->tty.sx; |
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
gc.bg = options_get_number(&s->options, "message-fg"); |
gc.fg = options_get_number(&s->options, "message-fg"); |
gc.fg = options_get_number(&s->options, "message-bg"); |
gc.bg = options_get_number(&s->options, "message-bg"); |
gc.attr |= options_get_number(&s->options, "message-attr"); |
gc.attr |= options_get_number(&s->options, "message-attr"); |
|
|
screen_write_start(&ctx, NULL, &c->status); |
screen_write_start(&ctx, NULL, &c->status); |