screpl.main module

Initialize module and run apps

screpl.main. get_loop_count ( ) [source]

EUDFuncN - Returns counter that measures how much loops are called

screpl.main. get_app_manager ( ) [source]

Returns the unique AppManager instance

screpl.main. get_bridge_region ( ) [source]
screpl.main. get_main_writer ( ) [source]

Returns main writer.

Main writer is REPLByteRW instance that is responsible for text UI of Application and writers in screpl.writer . One can use the returned object for memory usage but the one should follow following restriction:

  • It should not bother print() . It may be used freely on the outside of the method.

screpl.main. initialize_with_id ( su_id ) [source]

Initialize REPL with configurations, with id-certification.

Parameters

su_id ( int ) – id of super user, it must ranges from 0 to 7.

screpl.main. initialize_with_name ( su_name ) [source]

Initialize REPL with configurations, with name-certification.

Parameters

su_name ( str ) – name of super user.

screpl.main. is_blind_mode ( ) [source]

Returns bool that indicates blind mode is active

screpl.main. is_bridge_mode ( ) [source]

Returns bool that indicates bridge is active

screpl.main. print_ui ( ) [source]

print display buffer from manager

It temporary saves line counts. If line count is decreased, additionally print empty lines

screpl.main. run ( ) [source]

Run main loop of SC-REPL

screpl.main. set_bridge_mode ( bridge_mode ) [source]

Initialize bridge with specificed mode

Parameters

bridge_mode ( str ) – string that configures bridge mode. It must be one of “off”, “on”, or “blind”. * If bridge_mode is “off”, do not construct BridgeRegion. * For case “on”, construct BridgeRegion. * For case “blind”, construct BridgeRegion, and enable blind mode

Blind mode supports to send all text UI from REPL apps to bridge client.

screpl.main. set_trigger_timer ( timer ) [source]

Sets trigger timer as given timer