##// 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 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 381 return {
384 382 'complete_in_thread': False,
385 383 'lexer':IPythonPTLexer(),
386 384 'reserve_space_for_menu':self.space_for_menu,
387 'message': get_message,
385 'message': PygmentsTokens(self.prompts.in_prompt_tokens()),
388 386 'prompt_continuation': (
389 387 lambda width, lineno, is_soft_wrap:
390 388 PygmentsTokens(self.prompts.continuation_prompt_tokens(width))),
General Comments 0
You need to be logged in to leave comments. Login now