Closely emulate the behavior of the interactive Python interpreter.
This class builds on InteractiveInterpreter and adds prompting
using the familiar sys.ps1 and sys.ps2, and input buffering.
As Code.InteractiveConsole but extend it with a stop function.
def usi.shell.console.Console.interact |
( |
|
self, |
|
|
|
banner = None |
|
) |
| |
Closely emulate the interactive Python console.
The optional banner argument specify the banner to print
before the first interaction; by default it prints a banner
similar to the one printed by the real Python interpreter,
followed by the current class name in parentheses (so as not
to confuse this with the real interpreter -- since it's so
close!).
References usi.shell.console.Console.run, leon3_funclt_trap::PinTLM_out_32.run, core.waf.logger.Logger.write(), ArrayStorage.write(), MapStorage.write(), BaseMemory.write(), Storage.write(), sr_signal::signal_out< TYPE, MODULE >.write(), sr_signal::signal_out< bool, Irqmp >.write(), signal_out< INTYPE, MODULE >.write(), signal_out< TYPE, MODULE >.write(), sr_signal::signal_selector< TYPE, MODULE >.write(), sr_signal::signal_out_if< TYPE >.write(), sr_signal::signal_out_if< bool >.write(), signal_out_if< int >.write(), signal_out_if< TYPE >.write(), core.waf.cpplint.cpplint_wrapper.write(), dcache_in_type.write, sc_register_field_b< T >.write(), sc_register_field_b< unsigned int >.write(), sc_register_field_b< DATA_TYPE >.write(), sc_register_b< unsigned long long >.write(), sc_register_b< unsigned short >.write(), sc_register_b< DATA_TYPE >.write(), sc_register_b< unsigned int >.write(), sc_register_b< unsigned char >.write(), sc_register_b< T >.write(), and sr_register< DATA_TYPE >.write().