Now calls pexpect.spawn.interact() for full command window functionality (properly handles arrow keys, tab completion, backspace, clc, etc.). Falls back to the original sys.stdin code if pexpect isn't available.
Note a couple side effects before deciding whether to merge:
print causes flushing issues with pexpect.spawn.interact(), so now there's print_flush() as a workaround.
Timer code is now echoed to the console (example attached). I couldn't figure out how to hide these when using pexpect.spawn.send().
Now calls
pexpect.spawn.interact()
for full command window functionality (properly handles arrow keys, tab completion, backspace,clc
, etc.). Falls back to the originalsys.stdin
code ifpexpect
isn't available.Note a couple side effects before deciding whether to merge:
print
causes flushing issues withpexpect.spawn.interact()
, so now there'sprint_flush()
as a workaround.pexpect.spawn.send()
.