def more(text):
 if term.term_mode:
  lines = text.split('\n')
  h = term.output(term.text.reverse('(more)'), float=True, frozen=False)
  step = (term.height - 1)
  for i in range(0, len(lines), step):
   for l in lines[i:(i + step)]:
    print l
   if ((i + step) < len(lines)):
    term.key.get()
  h.delete()
 else:
  print text

def more ( text ) : if term . term_mode : lines = text . split ( '\n' ) h = term . output ( term . text . reverse ( '(more)' ) , float = True , frozen = False ) step = ( term . height - 1 ) for i in range ( 0 , len ( lines ) , step ) : for l in lines [ i : ( i + step ) ] : print l if ( ( i + step ) < len ( lines ) ) : term . key . get ( ) h . delete ( ) else : print text
more shows text like the command line tool more .