version 1.324, 2019/05/13 20:10:23 |
version 1.325, 2019/05/30 07:42:41 |
|
|
{ |
{ |
const char *acs; |
const char *acs; |
|
|
|
if ((tty->term->flags & TERM_EARLYWRAP) && |
|
ch >= 0x20 && ch != 0x7f && |
|
tty->cy == tty->sy - 1 && |
|
tty->cx + 1 >= tty->sx) |
|
return; |
|
|
if (tty->cell.attr & GRID_ATTR_CHARSET) { |
if (tty->cell.attr & GRID_ATTR_CHARSET) { |
acs = tty_acs_get(tty, ch); |
acs = tty_acs_get(tty, ch); |
if (acs != NULL) |
if (acs != NULL) |
|
|
void |
void |
tty_putn(struct tty *tty, const void *buf, size_t len, u_int width) |
tty_putn(struct tty *tty, const void *buf, size_t len, u_int width) |
{ |
{ |
|
if ((tty->term->flags & TERM_EARLYWRAP) && |
|
tty->cy == tty->sy - 1 && |
|
tty->cx + len >= tty->sx) |
|
len = tty->sx - tty->cx - 1; |
|
|
tty_add(tty, buf, len); |
tty_add(tty, buf, len); |
if (tty->cx + width > tty->sx) { |
if (tty->cx + width > tty->sx) { |
tty->cx = (tty->cx + width) - tty->sx; |
tty->cx = (tty->cx + width) - tty->sx; |