4

I spotted in my code a line that I never wrote:

#!/usr/bin/python
#1;3409;0c

from math import exp

I think you can spot it yourself.

So I googled it, and it appears that nobody talk about it, but yet, it pops by itself in some places:

Does somebody know where it comes from?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Borbag
  • 597
  • 4
  • 21

1 Answers1

3

It seems to be related to interaction between Vim and the terminal, according to a comment on Why is vim starting in delete mode?

When built with the +termresponse feature, Vim sends a special control sequence (see :set t_RV?) to the terminal. When your terminal emulator see this sequence it responds with the sequence ESC ]>1;3201;0c.

There's also some stuff Vim may do when pressing the escape key in these cases, according to Mapping <esc> in vimrc causes bizzare arrow behaviour

This ensures that the binding doesn't happen until after the term response is set, which prevents Esc from also sending a string like ]>1;3201;0c to vim.

So, I'm guessing that all the pages linked in the question has (at least once) been opened in Vim.

Community
  • 1
  • 1
sisve
  • 19,501
  • 3
  • 53
  • 95