We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba1319f commit 64e1933Copy full SHA for 64e1933
1 file changed
cmd2.py
@@ -717,8 +717,9 @@ def postparsing_postcmd(self, stop):
717
"""
718
if not sys.platform.startswith('win'):
719
# Fix those annoying problems that occur with terminal programs like "less" when you pipe to them
720
- proc = subprocess.Popen(shlex.split('stty sane'))
721
- proc.communicate()
+ if self.stdin.isatty():
+ proc = subprocess.Popen(shlex.split('stty sane'))
722
+ proc.communicate()
723
return stop
724
725
def parseline(self, line):
0 commit comments