Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running :!program from VimEnter sends input to the program #8591

Open
xaizek opened this issue Jul 19, 2021 · 2 comments
Open

Running :!program from VimEnter sends input to the program #8591

xaizek opened this issue Jul 19, 2021 · 2 comments

Comments

@xaizek
Copy link

xaizek commented Jul 19, 2021

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):

  • Vim version: 8.2.2876
  • OS: Slackware 14.2
  • Terminal: xterm

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.

@brammool
Copy link
Contributor

brammool commented Jul 19, 2021 via email

@vim-ml
Copy link

vim-ml commented Jul 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants