title: How to force refresh in Curses with Ruby
body: <p>I created a main window <code>win</code>:</p>
  
  <pre><code>win = Curses::Window.new(Curses.lines / 2, Curses.cols, 0, 0)
  </code></pre>
  
  <p>Then I sometimes need to create a message window, that covers the main one. After I close the message window, I refreshed  <code>win</code>:</p>
  
  <pre><code>win.refresh
  </code></pre>
  
  <p>But unless I change anything in the main window using something like: </p>
  
  <pre><code>win.addstr("asd")
  </code></pre>
  
  <p><code>refresh</code> doesn't redraw the window. </p>
  
  <p>Is there a way to force redrawing the window?</p>