(connection: PromptToolkitSSHSession | TelnetConnection)
| 31 | |
| 32 | |
| 33 | async def interact(connection: PromptToolkitSSHSession | TelnetConnection) -> None: |
| 34 | global_dict = {**globals(), "print": print_formatted_text} |
| 35 | await embed(return_asyncio_coroutine=True, globals=global_dict) |
| 36 | |
| 37 | |
| 38 | async def main(ssh_port: int = 8022, telnet_port: int = 8023) -> None: |