title: Python testing ncurses
body: <p>I'm developing terminal app. And I'm wondering how can one
  test the terminal user interface made with ncurses. Does any one have some experience with this kind of testing?</p>
  
  <ul>
  <li><p>So far my best shot will be to test app with <a href="https://stackoverflow.com/questions/16571150/how-to-capture-stdout-output-from-a-python-function-call">capturing stdout</a> and compare it with what it should be. But I'm concerned that i could never create the comparable case for every terminal size, text colors codes for (256bit,24bit), etc...</p></li>
  <li><p>One way to test would be to simulate the keyboard but how could I test the visual behaivour?</p></li>
  </ul>
  
  <p>I am clueless obout this problem...</p>