Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not get terminal dimensions when we're piping to someone #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benvd
Copy link

@benvd benvd commented Feb 3, 2014

When piping to someone else, the following crash occurred:

Traceback (most recent call last):
  File "./coloredlogcat.py", line 46, in <module>
    data = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, '1234')
IOError: [Errno 25] Inappropriate ioctl for device

This commit fixes that, and allows redirecting the output of coloredlogcat. Useful to, for instance, grep for a specific tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant