version 1.57, 2013/01/17 20:30:43 |
version 1.58, 2013/01/18 02:16:21 |
|
|
int |
int |
input_print(struct input_ctx *ictx) |
input_print(struct input_ctx *ictx) |
{ |
{ |
ictx->cell.data = ictx->ch; |
grid_cell_one(&ictx->cell, ictx->ch); |
screen_write_cell(&ictx->ctx, &ictx->cell, NULL); |
screen_write_cell(&ictx->ctx, &ictx->cell); |
|
|
return (0); |
return (0); |
} |
} |
|
|
|
|
utf8_append(&ictx->utf8data, ictx->ch); |
utf8_append(&ictx->utf8data, ictx->ch); |
|
|
ictx->cell.flags |= GRID_FLAG_UTF8; |
grid_cell_set(&ictx->cell, &ictx->utf8data); |
screen_write_cell(&ictx->ctx, &ictx->cell, &ictx->utf8data); |
screen_write_cell(&ictx->ctx, &ictx->cell); |
ictx->cell.flags &= ~GRID_FLAG_UTF8; |
|
|
|
return (0); |
return (0); |
} |
} |