-->

粘贴大块的代码TMUX在Mac OSX(Pasting a large chunk of code

2019-10-29 06:35发布

假设我开一个Python上TMUX。 如果我贴一大块的代码涉及到一些延误和打印报表,TMUX会返回一些随机的垃圾给我。

例如,如果我复制下面的代码(请手动重复的中间部分)

import time
print("hello world");time.sleep(0.02)
print("hello world");time.sleep(0.02)
.
.  (please repeat it at least 50 times)
.
print("hello world");time.sleep(0.02)

然后将其粘贴到TMUX窗口。 它不返回我们所期望的,但原始输入的一些随机组合。

>>> print("hello world");time.sleep(0.02print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0.02print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202print("hello world");time.sleep(0.0202

PS:

  1. 它不会发生在我的Linux机器上,但只有我的Mac

  2. 还当我打开蟒蛇没有TMUX不会发生。

所以我的问题:有什么我失踪? 或者是TMUX的错误?

TMUX 1.9A,蟒蛇2.x和3.x,Mac OSX上的优胜美地。

文章来源: Pasting a large chunk of code to tmux on Mac OSX