MCPcopy
hub / github.com/prompt-toolkit/ptpython / do_in_terminal

Method do_in_terminal

src/ptpython/python_input.py:1064–1070  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1062 from prompt_toolkit.application import in_terminal
1063
1064 async def do_in_terminal() -> None:
1065 async with in_terminal():
1066 result = await history.app.run_async()
1067 if result is not None:
1068 self.default_buffer.text = result
1069
1070 app.vi_state.input_mode = InputMode.INSERT
1071
1072 asyncio.ensure_future(do_in_terminal())
1073

Callers

nothing calls this directly

Calls 1

run_asyncMethod · 0.80

Tested by

no test coverage detected