Run code in terminal

Hi. In Pycharm we have terminal plugin.
Now i try to work with curses (npyscreen)
So, i cant run my project. Every time i am need write code in editor and opened terminal to run "python filename.py" to check results.
How i can setup project Run, than my app opened in terminal? Not in Pycharm console
Be cause i we try run app in console we get error

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/curses/__init__.py", line 33, in initscr
    fd=_sys.__stdout__.fileno())
_curses.error: setupterm: could not find terminal

Please sign in to leave a comment.