diff --git a/pytest_watcher/term_utils.py b/pytest_watcher/term_utils.py index bad2445..b32ebbe 100644 --- a/pytest_watcher/term_utils.py +++ b/pytest_watcher/term_utils.py @@ -30,7 +30,7 @@ def wrapper(*args, **kwargs): @posix_only -def enter_cbbreak(): +def enter_cbreak(): tty.setcbreak(sys.stdin.fileno()) diff --git a/pytest_watcher/watcher.py b/pytest_watcher/watcher.py index b7f0564..a94e3af 100644 --- a/pytest_watcher/watcher.py +++ b/pytest_watcher/watcher.py @@ -131,7 +131,7 @@ def main_loop(*, runner: str, runner_args: List[str], delay: float, clear: bool) _invoke_runner(runner, runner_args, clear=clear) finally: - term_utils.enter_cbbreak() + term_utils.enter_cbreak() clear_stdin() print_short_menu(runner_args) @@ -195,7 +195,7 @@ def run(): sys.stdout.write(f"Runner command: {config.runner}\n") sys.stdout.write(f"Waiting for file changes in {config.path.absolute()}\n") - term_utils.enter_cbbreak() + term_utils.enter_cbreak() if config.now: trigger.emit()