##// END OF EJS Templates
Make color_depth property for reuse
Kyungdahm Yun -
Show More
@@ -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