diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 23f45024..e50d9512 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1607,7 +1607,7 @@ class Cmd(cmd.Cmd): """Run the command finalization hooks""" with self.sigint_protection: - if not sys.platform.startswith('win') and self.stdout.isatty(): + if not sys.platform.startswith('win') and self.stdin.isatty(): # Before the next command runs, fix any terminal problems like those # caused by certain binary characters having been printed to it. import subprocess |