title: osx _curses.error: setupterm: could not find terminfo database
body: <p>I'm using python curses and developing under PyCharm. but whatever a simple curses program, it always gives me such an exception. what i had tried were: </p>
  
  <ul>
  <li>add export <code>TERM="xterm-256color"</code> and export <code>TERMINFO="/usr/share/terminfo"</code>, but there was still appeared such exception:<code>_curses.error: setupterm: could not find terminfo database</code>(useless)</li>
  <li>add such TERM environment variable into PyCharm run configuration like this way,but still ran failed, here is configuration screen capture:
  <a href="https://i.stack.imgur.com/Gmkuw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gmkuw.png" alt="run configuration"></a></li>
  </ul>