Show More
@@ -77,6 +77,14 b' by setting ``get_ipython().prompts`` to an *instance* of the class.' | |||
|
77 | 77 | In configuration, ``TerminalInteractiveShell.prompts_class`` may be set to |
|
78 | 78 | either the class object, or a string of its full importable name. |
|
79 | 79 | |
|
80 | To include invisible terminal control sequences in a prompt, use | |
|
81 | ``Token.ZeroWidthEscape`` as the token type. Tokens with this type are ignored | |
|
82 | when calculating the width. | |
|
83 | ||
|
84 | Colours in the prompt are determined by the token types and the highlighting | |
|
85 | style; see below for more details. The tokens used in the default prompts are | |
|
86 | ``Prompt``, ``PromptNum``, ``OutPrompt`` and ``OutPromptNum``. | |
|
87 | ||
|
80 | 88 | .. _termcolour: |
|
81 | 89 | |
|
82 | 90 | Terminal Colors |
General Comments 0
You need to be logged in to leave comments.
Login now