Describe the bug
Executing a command with :! from VimEnter auto-command sends input to that process.
To Reproduce
Make your .vimrc look like this:
au VimEnter * !cat > wtf
And just start vim (use Ctrl+D to finish cat).
You'll see output like this:
^[[2;2R^[[3;1R^[[>41;367;0c^[]10;rgb:ffff/ffff/ffff^G^[]11;rgb:0808/0808/0808^G
and wtf file in current directory containing the same:
00000000 1b 5b 32 3b 32 52 1b 5b 33 3b 31 52 1b 5b 3e 34 |.[2;2R.[3;1R.[>4|
00000010 31 3b 33 36 37 3b 30 63 1b 5d 31 30 3b 72 67 62 |1;367;0c.]10;rgb|
00000020 3a 66 66 66 66 2f 66 66 66 66 2f 66 66 66 66 07 |:ffff/ffff/ffff.|
00000030 1b 5d 31 31 3b 72 67 62 3a 30 38 30 38 2f 30 38 |.]11;rgb:0808/08|
00000040 30 38 2f 30 38 30 38 07 3a |08/0808.:|
00000049
Expected behavior
No unexpected output on the screen and empty wtf file.
Environment (please complete the following information):
Additional context
This looks a lot like control sequences, although I'm not sure whether they are coming from Vim itself or that's a terminal responding to some query from Vim. I suspect the latter.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()