Skip to content

Commit

Permalink
Use stdout's fileno for display-terminfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Nov 27, 2014
1 parent 633bd13 commit d9321bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/display-terminalinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def display_conf(kind, names, getter):


def main():
fd = sys.stdin.fileno()
fd = sys.stdout.fileno()

print('os.isatty({0}) => {1}'.format(fd, os.isatty(fd)))

Expand Down

0 comments on commit d9321bd

Please sign in to comment.