GNOME Bugzilla – Bug 788121
Add support for repeat character escape sequence
Last modified: 2017-09-25 11:45:01 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.
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 ***