##// END OF EJS Templates
Merge pull request #9546 from Carreau/no-tty...
Min RK -
r22455:75c37422 merge
parent child Browse files
Show More
@@ -50,7 +50,14 b' def get_default_editor():'
50 else:
50 else:
51 return 'notepad' # same in Windows!
51 return 'notepad' # same in Windows!
52
52
53 _use_simple_prompt = 'IPY_TEST_SIMPLE_PROMPT' in os.environ or not sys.stdin.isatty()
53
54 if sys.stdin and sys.stdout and sys.stderr:
55 _is_tty = (sys.stdin.isatty()) and (sys.stdout.isatty()) and (sys.stderr.isatty())
56 else:
57 _is_tty = False
58
59
60 _use_simple_prompt = ('IPY_TEST_SIMPLE_PROMPT' in os.environ) or (not _is_tty)
54
61
55 class TerminalInteractiveShell(InteractiveShell):
62 class TerminalInteractiveShell(InteractiveShell):
56 colors_force = True
63 colors_force = True
General Comments 0
You need to be logged in to leave comments. Login now