After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788121 - Add support for repeat character escape sequence
Add support for repeat character escape sequence
Status: RESOLVED DUPLICATE of bug 787701
Product: vte
Classification: Core
Component: general
0.50.x
Other All
: Normal enhancement
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-25 10:02 UTC by gregerwin256
Modified: 2017-09-25 11:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gregerwin256 2017-09-25 10:02:55 UTC
I realized that vte doesn't implement the repeat character escape sequence while writing a basic ncurses program. Ncurses will intelligently emit this sequence if 7 or more of the same characters are printed to the screen, but only if terminfo reports that this escape sequence is supported. Notably, if the $TERM environment variable is set to "xterm" or "xterm-256color" for example, then it is claimed to be supported and ncurses will emit this repeat character escape sequence.

But because vte doesn't implement it, characters get lost when using any terminal that is based on it, such as gnome-terminal or xfce4-terminal, with many of the common $TERM settings.

To reproduce:

$ export $TERM=xterm
$ echo -e "a\x1B[10b"

The expected result is that the letter 'a' is printed 10 times.
Instead the letter 'a' is only printed once.
The expected result is output correctly when using xterm or UXTerm.
Comment 1 Egmont Koblinger 2017-09-25 11:45:01 UTC
Thanks; we already have a patch for this which I'll submit in a few days.

> The expected result is that the letter 'a' is printed 10 times.

Nit: 1+10 = 11 times.

*** This bug has been marked as a duplicate of bug 787701 ***