Implement REP CSI
Bug #1805050 reported by
Andreas Stöckel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvterm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
vterm does not implement the REP CSI defined in ECMA-48 section 8.3.103. This CSI is heavily used by ncurses if "TERM=xterm" to draw forms. The REP CSI repeats the last character n times until the end of the line.
Examples:
echo -e "a\e[bb"
aab
echo -e "a\e[0bb"
aab
echo -e "a\e[2bb"
aaab
echo -e "a\e[9000bb"
aaaaaaaaaaaaaaa
b
See the attached image for the "demo_form" ncurses example application without REP.
(Note: I've already fixed this bug, but need the bug number to name the test case correctly.)
description: | updated |
description: | updated |
Changed in libvterm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've implemented the REP CSI in the following patch:
[PATCH] Implement REP CSI (ECMA-48 §8.3.103) /github. com/astoeckel/ libvterm/ commit/ 7e1aad25b4d26d5 4fb8d135f6c2fee 4634a20d3c. patch
https:/
I'm not sure if I've handled line-wrapping with two-column characters correctly, but other than that it should be ok, I think.
See attached image for the ncurses test application demo_form with the patch applied.