Show More
@@ -22,7 +22,7 b' from prompt_toolkit.history import InMemoryHistory' | |||
|
22 | 22 | from prompt_toolkit.layout.processors import ConditionalProcessor, HighlightMatchingBracketProcessor |
|
23 | 23 | from prompt_toolkit.output import ColorDepth |
|
24 | 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 | 26 | from prompt_toolkit.styles import DynamicStyle, merge_styles |
|
27 | 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 | 507 | tokens = self.prompts.rewrite_prompt_tokens() |
|
508 | 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 | 511 | print(cmd) |
|
511 | 512 | else: |
|
512 | 513 | prompt = ''.join(s for t, s in tokens) |
General Comments 0
You need to be logged in to leave comments.
Login now