神秘的线“1;3409;0c”从何而来

Where does the mysterious line "1;3409;0c" come from

我在我的代码中发现了我从未写过的一行:

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

from math import exp

我想你可以自己发现。

所以我在谷歌上搜索了一下,似乎没有人谈论它,但是,它在某些地方自行弹出:

有人知道它来自哪里吗?

根据Why is vim starting in delete mode?

的评论,似乎与Vim和终端的交互有关

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.

根据 Mapping <esc> in vimrc causes bizzare arrow behaviour

,在这些情况下按 Esc 键时 Vim 可能会执行一些操作

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.

因此,我猜测问题中链接的所有页面都已(至少一次)在 Vim 中打开。