##// END OF EJS Templates
Merge pull request #11550 from tomyun/pdb-color-depth...
Matthias Bussonnier -
r24906:c1d862d8 merge
parent child Browse files
Show More
@@ -58,6 +58,7 b' class TerminalPdb(Pdb):'
58 complete_style=self.shell.pt_complete_style,
58 complete_style=self.shell.pt_complete_style,
59 style=self.shell.style,
59 style=self.shell.style,
60 inputhook=self.shell.inputhook,
60 inputhook=self.shell.inputhook,
61 color_depth=self.shell.color_depth,
61 )
62 )
62
63
63 def cmdloop(self, intro=None):
64 def cmdloop(self, intro=None):
@@ -288,7 +288,7 b' class TerminalInteractiveShell(InteractiveShell):'
288 include_default_pygments_style=False,
288 include_default_pygments_style=False,
289 mouse_support=self.mouse_support,
289 mouse_support=self.mouse_support,
290 enable_open_in_editor=self.extra_open_editor_shortcuts,
290 enable_open_in_editor=self.extra_open_editor_shortcuts,
291 color_depth=(ColorDepth.TRUE_COLOR if self.true_color else None),
291 color_depth=self.color_depth,
292 **self._extra_prompt_options())
292 **self._extra_prompt_options())
293
293
294 def _make_style_from_name_or_cls(self, name_or_cls):
294 def _make_style_from_name_or_cls(self, name_or_cls):
@@ -365,6 +365,10 b' class TerminalInteractiveShell(InteractiveShell):'
365 'readlinelike': CompleteStyle.READLINE_LIKE,
365 'readlinelike': CompleteStyle.READLINE_LIKE,
366 }[self.display_completions]
366 }[self.display_completions]
367
367
368 @property
369 def color_depth(self):
370 return (ColorDepth.TRUE_COLOR if self.true_color else None)
371
368 def _extra_prompt_options(self):
372 def _extra_prompt_options(self):
369 """
373 """
370 Return the current layout option for the current Terminal InteractiveShell
374 Return the current layout option for the current Terminal InteractiveShell
General Comments 0
You need to be logged in to leave comments. Login now