Skip to content

Commit

Permalink
Disable term if initialization fails
Browse files Browse the repository at this point in the history
Closes #1658
  • Loading branch information
Arusekk committed Aug 17, 2020
1 parent 9e0aa32 commit 9d34023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pwnlib/term/unix_termcap.py
Expand Up @@ -60,6 +60,8 @@ def init():
except curses.error as e:
import traceback
print('Warning:', ''.join(traceback.format_exception_only(e.__class__, e)), file=sys.stderr)
print('Terminal features will not be available. Consider setting TERM variable to your current terminal name (or xterm).', file=sys.stderr)
os.environ['PWNLIB_NOTERM'] = '1'

cache = {}
# Manually add reset sequence into the cache.
Expand Down

0 comments on commit 9d34023

Please sign in to comment.