##// END OF EJS Templates
static message instead of function call to prevent shell slowdown
Gerrit Buss -
Show More
@@ -377,14 +377,12 b' class TerminalInteractiveShell(InteractiveShell):'
377 """
377 """
378 Return the current layout option for the current Terminal InteractiveShell
378 Return the current layout option for the current Terminal InteractiveShell
379 """
379 """
380 def get_message():
381 return PygmentsTokens(self.prompts.in_prompt_tokens())
382
380
383 return {
381 return {
384 'complete_in_thread': False,
382 'complete_in_thread': False,
385 'lexer':IPythonPTLexer(),
383 'lexer':IPythonPTLexer(),
386 'reserve_space_for_menu':self.space_for_menu,
384 'reserve_space_for_menu':self.space_for_menu,
387 'message': get_message,
385 'message': PygmentsTokens(self.prompts.in_prompt_tokens()),
388 'prompt_continuation': (
386 'prompt_continuation': (
389 lambda width, lineno, is_soft_wrap:
387 lambda width, lineno, is_soft_wrap:
390 PygmentsTokens(self.prompts.continuation_prompt_tokens(width))),
388 PygmentsTokens(self.prompts.continuation_prompt_tokens(width))),
General Comments 0
You need to be logged in to leave comments. Login now