version 1.139, 2015/11/12 11:09:11 |
version 1.140, 2015/11/13 08:09:28 |
|
|
struct session *s = c->session; |
struct session *s = c->session; |
struct screen old_status; |
struct screen old_status; |
size_t i, size, left, len, off; |
size_t i, size, left, len, off; |
struct grid_cell gc, *gcp; |
struct grid_cell gc; |
|
|
if (c->tty.sx == 0 || c->tty.sy == 0) |
if (c->tty.sx == 0 || c->tty.sy == 0) |
return (0); |
return (0); |
|
|
|
|
/* Apply fake cursor. */ |
/* Apply fake cursor. */ |
off = len + c->prompt_index - off; |
off = len + c->prompt_index - off; |
gcp = grid_view_get_cell(c->status.grid, off, 0); |
grid_view_get_cell(c->status.grid, off, 0, &gc); |
gcp->attr ^= GRID_ATTR_REVERSE; |
gc.attr ^= GRID_ATTR_REVERSE; |
|
grid_view_set_cell(c->status.grid, off, 0, &gc); |
|
|
if (grid_compare(c->status.grid, old_status.grid) == 0) { |
if (grid_compare(c->status.grid, old_status.grid) == 0) { |
screen_free(&old_status); |
screen_free(&old_status); |