title: Lua update screen during loop
body: <p>I'm writing a function for an on-screen character to follow a path of markers.  I'd like to iterate through all of the markers for that character, and update the display for each.  What's happening now is that the display only updates once at the end of the iteration.  Based on a few FAQs, it appears that lua is designed to work this way.  So what's the best way to accomplish gradual movement in lua? </p>
  
  <pre><code>local function follow_movement_path (moving_char)
      these_markers = moving_char.move_markers
      for m, n in ipairs(these_markers) do
          this_marker = n
          moving_char.x = this_marker.x
          moving_char.y = this_marker.y
          print(this_marker.current_space.name)
          sleep(1)
      end
  end 
  </code></pre>
  
  <p>Thank you in advance for any insight.</p>