version 1.26, 2009/09/07 18:50:45 |
version 1.27, 2009/09/10 17:16:24 |
|
|
{ |
{ |
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *s = &data->screen; |
struct screen *s = &data->screen; |
|
struct options *oo = &wp->window->options; |
struct grid_cell gc; |
struct grid_cell gc; |
char hdr[32]; |
char hdr[32]; |
size_t last, xoff = 0, size = 0; |
size_t last, xoff = 0, size = 0; |
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
gc.fg = options_get_number(&wp->window->options, "mode-fg"); |
colour_set_fg(&gc, options_get_number(oo, "mode-fg")); |
gc.bg = options_get_number(&wp->window->options, "mode-bg"); |
colour_set_bg(&gc, options_get_number(oo, "mode-bg")); |
gc.attr |= options_get_number(&wp->window->options, "mode-attr"); |
gc.attr |= options_get_number(oo, "mode-attr"); |
|
|
last = screen_size_y(s) - 1; |
last = screen_size_y(s) - 1; |
if (py == 0) { |
if (py == 0) { |
|
|
{ |
{ |
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *s = &data->screen; |
struct screen *s = &data->screen; |
|
struct options *oo = &wp->window->options; |
struct grid_cell gc; |
struct grid_cell gc; |
u_int sx, sy, ty; |
u_int sx, sy, ty; |
|
|
|
|
|
|
/* Set colours. */ |
/* Set colours. */ |
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
gc.fg = options_get_number(&wp->window->options, "mode-fg"); |
colour_set_fg(&gc, options_get_number(oo, "mode-fg")); |
gc.bg = options_get_number(&wp->window->options, "mode-bg"); |
colour_set_bg(&gc, options_get_number(oo, "mode-bg")); |
gc.attr |= options_get_number(&wp->window->options, "mode-attr"); |
gc.attr |= options_get_number(oo, "mode-attr"); |
|
|
/* Find top of screen. */ |
/* Find top of screen. */ |
ty = screen_hsize(&wp->base) - data->oy; |
ty = screen_hsize(&wp->base) - data->oy; |