Commit a9a8c7ef by devttys0

Fixed curses import bug in Windows

parent 92aa094d
import os
import sys
import curses
import string
import platform
import binwalk.core.common as common
......@@ -208,6 +207,7 @@ class HexDiff(Module):
# Set up the tty for colorization, if it is supported
if hasattr(sys.stderr, 'isatty') and sys.stderr.isatty() and platform.system() != 'Windows':
import curses
curses.setupterm()
self.colorize = self._colorize
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment