mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-15 02:49:21 +00:00
Slower pace for virtual typist
This commit is contained in:
@@ -254,8 +254,12 @@ def send_keys(data):
|
||||
for key in data:
|
||||
if key == ";":
|
||||
key = "\\;"
|
||||
if key == "\n":
|
||||
time.sleep(1)
|
||||
subprocess.check_call(["tmux", "send-keys", key])
|
||||
time.sleep(0.1*random.random())
|
||||
time.sleep(0.2*random.random())
|
||||
if key == "\n":
|
||||
time.sleep(1)
|
||||
else:
|
||||
subprocess.check_call(["tmux", "send-keys", data])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user