Commit a9a8c7ef by devttys0

Fixed curses import bug in Windows

parent 92aa094d
import os import os
import sys import sys
import curses
import string import string
import platform import platform
import binwalk.core.common as common import binwalk.core.common as common
...@@ -208,6 +207,7 @@ class HexDiff(Module): ...@@ -208,6 +207,7 @@ class HexDiff(Module):
# Set up the tty for colorization, if it is supported # Set up the tty for colorization, if it is supported
if hasattr(sys.stderr, 'isatty') and sys.stderr.isatty() and platform.system() != 'Windows': if hasattr(sys.stderr, 'isatty') and sys.stderr.isatty() and platform.system() != 'Windows':
import curses
curses.setupterm() curses.setupterm()
self.colorize = self._colorize self.colorize = self._colorize
else: 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