open stty in a shell
This commit is contained in:
parent
9cc771f445
commit
99785b5a4d
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class IFormatter(object):
|
|||
# XXX if stdin is not a tty, it seems that the command fails.
|
||||
|
||||
if os.isatty(sys.stdout.fileno()) and os.isatty(sys.stdin.fileno()):
|
||||
self.termrows = int( subprocess.Popen('stty size', stdout=subprocess.PIPE).communicate()[0].split()[0])
|
||||
self.termrows = int( subprocess.Popen('stty size', shell=True, stdout=subprocess.PIPE).communicate()[0].split()[0])
|
||||
|
||||
def after_format(self, formatted):
|
||||
if self.outfile != sys.stdout:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue