diff --git a/IPython/terminal/debugger.py b/IPython/terminal/debugger.py index 9ca0307..c68a320 100644 --- a/IPython/terminal/debugger.py +++ b/IPython/terminal/debugger.py @@ -64,6 +64,7 @@ class TerminalPdb(Pdb): mouse_support=self.shell.mouse_support, get_prompt_tokens=get_prompt_tokens, display_completions_in_columns=multicolumn, + style=self.shell.style ) self.pt_cli = CommandLineInterface(self._pt_app, eventloop=self.shell._eventloop) diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index f551fd4..c10450a 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -243,7 +243,7 @@ class TerminalInteractiveShell(InteractiveShell): last_cell = cell self._style = self._make_style_from_name_or_cls(self.highlighting_style) - style = DynamicStyle(lambda: self._style) + self.style = DynamicStyle(lambda: self._style) editing_mode = getattr(EditingMode, self.editing_mode.upper()) @@ -257,7 +257,7 @@ class TerminalInteractiveShell(InteractiveShell): completer=IPythonPTCompleter(shell=self, patch_stdout=patch_stdout), enable_history_search=True, - style=style, + style=self.style, mouse_support=self.mouse_support, **self._layout_options() )