forked from enlightenment/terminology
fix handling of DCH. Closes T537
As characters are deleted, the remaining characters between the cursor and right margin move to the left. Character attributes move with the characters. The terminal adds blank spaces with no visual character attributes at the right margin. DCH has no effect outside the scrolling margins.
This commit is contained in:
parent
11db9a1117
commit
81a7d98f2f
|
@ -552,7 +552,17 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
|
||||||
if (x < lim)
|
if (x < lim)
|
||||||
termpty_cell_copy(ty, &(cells[x + arg]), &(cells[x]), 1);
|
termpty_cell_copy(ty, &(cells[x + arg]), &(cells[x]), 1);
|
||||||
else
|
else
|
||||||
termpty_cell_fill(ty, NULL, &(cells[x]), 1);
|
{
|
||||||
|
cells[x].codepoint = ' ';
|
||||||
|
cells[x].att.underline = 0;
|
||||||
|
cells[x].att.blink = 0;
|
||||||
|
cells[x].att.blink2 = 0;
|
||||||
|
cells[x].att.inverse = 0;
|
||||||
|
cells[x].att.strike = 0;
|
||||||
|
#if defined(SUPPORT_DBLWIDTH)
|
||||||
|
cells[x].att.dblwidth = 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue