Skip to content

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