()
| 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 |