Skip to content

Terminal input hidden after quiting subprocess started with invoke.run #303

@tonysyu

Description

@tonysyu

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

$ invoke run

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions