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:
Boris Faure 2013-11-23 19:29:31 +01:00
parent 11db9a1117
commit 81a7d98f2f
1 changed files with 11 additions and 1 deletions

View File

@ -552,7 +552,17 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
if (x < lim)
termpty_cell_copy(ty, &(cells[x + arg]), &(cells[x]), 1);
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;