Suppose I open a python on tmux. If I paste a large chunk of code which involves some delays and print statements, tmux will return some random rubbish to me.
For example, if I copy the following code (please manually to repeat the middle part)
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)
and paste it to the tmux window. It doesn't return what we expected but some random mix of the original input.
>>> 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:
It doesn't happen on my linux machine, but only my Mac
It also doesn't happen when I open python without tmux.
So my question: is there anything I am missing? or is it a bug of tmux?
tmux 1.9a, python 2.x and 3.x, mac osx yosemite.