version 1.52, 2009/10/20 16:32:23 |
version 1.53, 2009/10/20 17:33:33 |
|
|
void |
void |
tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx) |
tty_cmd_utf8character(struct tty *tty, const struct tty_ctx *ctx) |
{ |
{ |
u_char *ptr = ctx->ptr; |
struct window_pane *wp = ctx->wp; |
size_t i; |
|
|
|
for (i = 0; i < UTF8_SIZE; i++) { |
/* |
if (ptr[i] == 0xff) |
* Cannot rely on not being a partial character, so just redraw the |
break; |
* whole line. |
tty_putc(tty, ptr[i]); |
*/ |
} |
tty_draw_line(tty, wp->screen, ctx->ocy, wp->xoff, wp->yoff); |
} |
} |
|
|
void |
void |