version 1.114, 2014/09/01 21:50:18 |
version 1.115, 2014/10/02 08:36:26 |
|
|
struct grid_line *gl; |
struct grid_line *gl; |
struct utf8_data ud; |
struct utf8_data ud; |
u_int i, xx, wrapped = 0; |
u_int i, xx, wrapped = 0; |
|
const char *s; |
|
|
if (sx > ex) |
if (sx > ex) |
return; |
return; |
|
|
if (gc->flags & GRID_FLAG_PADDING) |
if (gc->flags & GRID_FLAG_PADDING) |
continue; |
continue; |
grid_cell_get(gc, &ud); |
grid_cell_get(gc, &ud); |
|
if (ud.size == 1 && (gc->attr & GRID_ATTR_CHARSET)) { |
|
s = tty_acs_get(NULL, ud.data[0]); |
|
if (s != NULL && strlen(s) <= sizeof ud.data) { |
|
ud.size = strlen(s); |
|
memcpy (ud.data, s, ud.size); |
|
} |
|
} |
|
|
*buf = xrealloc(*buf, 1, (*off) + ud.size); |
*buf = xrealloc(*buf, 1, (*off) + ud.size); |
memcpy(*buf + *off, ud.data, ud.size); |
memcpy(*buf + *off, ud.data, ud.size); |