When I run invoke.run with a long-lived process and quit, terminal input becomes hidden after quitting. A simplified tasks.py example looks something like:
import invoke
@invoke.task
def run():
invoke.run('python -m http.server')
and run using
After quiting the server using Ctrl-C, keyboard inputs are no longer displayed. I can type all I want, but nothing is displayed until I hit enter, at which point, the terminal will display:
$-bash: random-letters-that-I-typed: command not found
Note that running the following does not result in the same issues.
import subprocess
subprocess.call('python -m http.server', shell=True)
System Info:
- OSX 10.11.2
- Python 3.4
- Invoke 0.12