title: pagination with the python cmd module
body: <p>I'm prototyping a Python app with the <a href="http://docs.python.org/library/cmd.html" rel="noreferrer">cmd</a> module.</p>
  
  <p>Some messages to the user will be quite long and I'd like to paginate them.
  The first 10 (or a configurable number) lines of the message would appear, and pressing the SPACE bar would display the next page, until the end of the message.</p>
  
  <p>I don't want to reinvent something here, is there a simple mean to implement this feature?</p>