Show More
@@ -160,9 +160,10 b' prompt_abbreviations = {' | |||
|
160 | 160 | # can get numbers displayed in whatever color they want. |
|
161 | 161 | r'\N': '{count}', |
|
162 | 162 | |
|
163 |
# Prompt/history count, with the actual digits replaced by dots |
|
|
164 | # mainly in continuation prompts (prompt_in2) | |
|
163 | # Prompt/history count, with the actual digits replaced by dots or | |
|
164 | # spaces. Used mainly in continuation prompts (prompt_in2). | |
|
165 | 165 | r'\D': '{dots}', |
|
166 | r'\S': '{spaces}', | |
|
166 | 167 | |
|
167 | 168 | # Current time |
|
168 | 169 | r'\T' : '{time}', |
@@ -391,8 +392,8 b' class PromptManager(Configurable):' | |||
|
391 | 392 | count = self.shell.execution_count # Shorthand |
|
392 | 393 | # Build the dictionary to be passed to string formatting |
|
393 | 394 | fmtargs = dict(color=colors, count=count, |
|
394 |
|
|
|
395 |
|
|
|
395 | dots="."*len(str(count)), spaces=" "*len(str(count)), | |
|
396 | width=self.width, txtwidth=self.txtwidth) | |
|
396 | 397 | fmtargs.update(self.lazy_evaluate_fields) |
|
397 | 398 | fmtargs.update(kwargs) |
|
398 | 399 |
General Comments 0
You need to be logged in to leave comments.
Login now