def _create_more_application():
 from prompt_toolkit.shortcuts import create_prompt_application
 registry = Registry()
 @registry.add_binding(u' ')
 @registry.add_binding(u'y')
 @registry.add_binding(u'Y')
 @registry.add_binding(Keys.ControlJ)
 @registry.add_binding(Keys.ControlI)
 def _(event):
  event.cli.set_return_value(True)
 @registry.add_binding(u'n')
 @registry.add_binding(u'N')
 @registry.add_binding(u'q')
 @registry.add_binding(u'Q')
 @registry.add_binding(Keys.ControlC)
 def _(event):
  event.cli.set_return_value(False)
 return create_prompt_application(u'--MORE--', key_bindings_registry=registry, erase_when_done=True)

def _create_more_application ( ) : from prompt_toolkit . shortcuts import create_prompt_application registry = Registry ( ) @ registry . add_binding ( u' ' ) @ registry . add_binding ( u'y' ) @ registry . add_binding ( u'Y' ) @ registry . add_binding ( Keys . ControlJ ) @ registry . add_binding ( Keys . ControlI ) def _ ( event ) : event . cli . set_return_value ( True ) @ registry . add_binding ( u'n' ) @ registry . add_binding ( u'N' ) @ registry . add_binding ( u'q' ) @ registry . add_binding ( u'Q' ) @ registry . add_binding ( Keys . ControlC ) def _ ( event ) : event . cli . set_return_value ( False ) return create_prompt_application ( u'--MORE--' , key_bindings_registry = registry , erase_when_done = True )
create an application instance that displays the "--more--" .