[vim/vim] Unwanted Escape Sequences using vim (#7257)

165 views
Skip to first unread message

cecamp

unread,
Nov 4, 2020, 7:48:55 PM11/4/20
to vim/vim, Subscribed

Bug
Unwanted escape sequences appear when starting/stopping vim

To Reproduce

vim -- clean  (or  vim -u NONE -U NONE)
:call system("/usr/bin/ls")
:q

On my scientific linux 7.9 system, I get a line of escape characters showing up on the bottom of the display: <esc>>4;m<esc>>4;m<esc>>4;2m<esc>>4;2m

Although annoying, the real problem is that I have some startup vim script that saves a list of files to a variable using system and /usr/bin/ls, and half of those escape sequences bleed through past the :q to the shell.

Extra Information
I suspect this may have something to do with the terminfo entry for xterm-256color. However, only three sequences with <esc>> appear via the infocmp command:

rs2=\E[!p\E[?3;4l\E[4l\E>
is2=\E[!p\E[?3;4l\E[4l\E
rmkx=\E[?1l\E>

Expected behavior
No unwanted escape sequences.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Shane-XB-Qian

unread,
Nov 5, 2020, 1:34:54 AM11/5/20
to vim/vim, Subscribed

@cecamp pls check #7015 - my comment at that ticket bottom.
// or detail at #5617

cecamp

unread,
Nov 5, 2020, 1:59:58 AM11/5/20
to vim/vim, Subscribed

Closed #7257.

cecamp

unread,
Nov 5, 2020, 1:59:59 AM11/5/20
to vim/vim, Subscribed

It does appear that Shane-XB-Qian's ticket+solution stops the unwanted escape sequences for me, so I'll close the issue. FYI: the terminal is a gnome-terminal.

Reply all
Reply to author
Forward
0 new messages