Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details.
(self,
init_command=None,
title=None,
title_color=None,
enable_mouse_on_start=True)
| 51 | return candidates[state] |
| 52 | |
| 53 | def run_ui(self, |
| 54 | init_command=None, |
| 55 | title=None, |
| 56 | title_color=None, |
| 57 | enable_mouse_on_start=True): |
| 58 | """Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details.""" |
| 59 | |
| 60 | print(title) |
| 61 | |
| 62 | if init_command is not None: |
| 63 | self._dispatch_command(init_command) |
| 64 | |
| 65 | exit_token = self._ui_loop() |
| 66 | |
| 67 | if self._on_ui_exit: |
| 68 | self._on_ui_exit() |
| 69 | |
| 70 | return exit_token |
| 71 | |
| 72 | def _ui_loop(self): |
| 73 | while True: |
nothing calls this directly
no test coverage detected