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

2024-10-06 11:23:07 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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

from math import exp

我想你自己也能发现。在

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

有人知道它是从哪里来的吗?在


Tags: 代码fromimporthttphomebinusrhtml
1条回答
网友
1楼 · 发布于 2024-10-06 11:23:07

根据对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,在这些情况下,按escape键时,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中打开过(至少一次)。在

相关问题 更多 >