##// END OF EJS Templates
simple-prompt: use prompts from self.prompts...
Ximin Luo -
Show More
@@ -228,8 +228,8 b' class TerminalInteractiveShell(InteractiveShell):'
228 # This is very limited, and only accepts a single line.
228 # This is very limited, and only accepts a single line.
229 def prompt():
229 def prompt():
230 isp = self.input_splitter
230 isp = self.input_splitter
231 prompt_text = 'In [%d]: ' % self.execution_count
231 prompt_text = "".join(x[1] for x in self.prompts.in_prompt_tokens())
232 prompt_continuation = ("%%%ds" % len(prompt_text)) % '...: '
232 prompt_continuation = "".join(x[1] for x in self.prompts.continuation_prompt_tokens())
233 while isp.push_accepts_more():
233 while isp.push_accepts_more():
234 line = cast_unicode_py2(input(prompt_text))
234 line = cast_unicode_py2(input(prompt_text))
235 isp.push(line)
235 isp.push(line)
General Comments 0
You need to be logged in to leave comments. Login now