Show More
@@ -22,7 +22,7 b' from prompt_toolkit.history import InMemoryHistory' | |||||
22 | from prompt_toolkit.layout.processors import ConditionalProcessor, HighlightMatchingBracketProcessor |
|
22 | from prompt_toolkit.layout.processors import ConditionalProcessor, HighlightMatchingBracketProcessor | |
23 | from prompt_toolkit.output import ColorDepth |
|
23 | from prompt_toolkit.output import ColorDepth | |
24 | from prompt_toolkit.patch_stdout import patch_stdout |
|
24 | from prompt_toolkit.patch_stdout import patch_stdout | |
25 | from prompt_toolkit.shortcuts import PromptSession, CompleteStyle |
|
25 | from prompt_toolkit.shortcuts import PromptSession, CompleteStyle, print_formatted_text | |
26 | from prompt_toolkit.styles import DynamicStyle, merge_styles |
|
26 | from prompt_toolkit.styles import DynamicStyle, merge_styles | |
27 | from prompt_toolkit.styles.pygments import style_from_pygments_cls, style_from_pygments_dict |
|
27 | from prompt_toolkit.styles.pygments import style_from_pygments_cls, style_from_pygments_dict | |
28 |
|
28 | |||
@@ -506,7 +506,8 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
506 |
|
506 | |||
507 | tokens = self.prompts.rewrite_prompt_tokens() |
|
507 | tokens = self.prompts.rewrite_prompt_tokens() | |
508 | if self.pt_app: |
|
508 | if self.pt_app: | |
509 | self.pt_app.print_tokens(tokens) # XXX |
|
509 | print_formatted_text(PygmentsTokens(tokens), end='', | |
|
510 | style=self.pt_app.app.style) | |||
510 | print(cmd) |
|
511 | print(cmd) | |
511 | else: |
|
512 | else: | |
512 | prompt = ''.join(s for t, s in tokens) |
|
513 | prompt = ''.join(s for t, s in tokens) |
General Comments 0
You need to be logged in to leave comments.
Login now