diff --git a/IPython/terminal/debugger.py b/IPython/terminal/debugger.py index ac0414d..fa8753c 100644 --- a/IPython/terminal/debugger.py +++ b/IPython/terminal/debugger.py @@ -63,6 +63,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 c836cc7..9bcc21b 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -235,7 +235,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()) @@ -249,7 +249,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() )