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
AppManagerinstance
-
screpl.main.get_main_writer( ) [source] ¶ -
Returns main writer.
Main writer is
REPLByteRWinstance that is responsible for text UI ofApplicationand writers inscrepl.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.print_ui( ) [source] ¶ -
print display buffer from manager
It temporary saves line counts. If line count is decreased, additionally print empty lines
-
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.