|
78 | 78 | from prompt_toolkit.input import DummyInput, create_input |
79 | 79 | from prompt_toolkit.key_binding import KeyBindings |
80 | 80 | from prompt_toolkit.output import DummyOutput, create_output |
| 81 | +from prompt_toolkit.output.color_depth import ColorDepth |
81 | 82 | from prompt_toolkit.patch_stdout import patch_stdout |
82 | 83 | from prompt_toolkit.shortcuts import CompleteStyle, PromptSession, choice, set_title |
83 | 84 | from prompt_toolkit.styles import DynamicStyle |
@@ -778,6 +779,7 @@ def _(event: Any) -> None: # pragma: no cover |
778 | 779 | kwargs: dict[str, Any] = { |
779 | 780 | "auto_suggest": AutoSuggestFromHistory() if auto_suggest else None, |
780 | 781 | "bottom_toolbar": self.get_bottom_toolbar if self.bottom_toolbar else None, |
| 782 | + "color_depth": ColorDepth.TRUE_COLOR, |
781 | 783 | "complete_style": CompleteStyle.MULTI_COLUMN, |
782 | 784 | "complete_in_thread": True, |
783 | 785 | "complete_while_typing": False, |
@@ -3593,6 +3595,7 @@ def read_input( |
3593 | 3595 |
|
3594 | 3596 | temp_session: PromptSession[str] = PromptSession( |
3595 | 3597 | auto_suggest=self.main_session.auto_suggest, |
| 3598 | + color_depth=self.main_session.color_depth, |
3596 | 3599 | complete_style=self.main_session.complete_style, |
3597 | 3600 | complete_in_thread=self.main_session.complete_in_thread, |
3598 | 3601 | complete_while_typing=self.main_session.complete_while_typing, |
|
0 commit comments