title: Is there a way to change the terminal title with curses
body: <p>I'm searching a way to change my terminal title with curses.</p>
  
  <p>Actually i do it like that: </p>
  
  <pre><code>sys.stdout.write("\x1b]2;%s\x07" % title)
  </code></pre>
  
  <p>but i'm searching a more general way to do it.</p>