Show More
@@ -629,7 +629,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
629 | # override sys.stdout and sys.stderr themselves, you need to do that |
|
629 | # override sys.stdout and sys.stderr themselves, you need to do that | |
630 | # *before* instantiating this class, because io holds onto |
|
630 | # *before* instantiating this class, because io holds onto | |
631 | # references to the underlying streams. |
|
631 | # references to the underlying streams. | |
632 | if sys.platform == 'win32' and self.has_readline: |
|
632 | if (sys.platform == 'win32' or sys.platform == 'cli') and self.has_readline: | |
633 | io.stdout = io.stderr = io.IOStream(self.readline._outputfile) |
|
633 | io.stdout = io.stderr = io.IOStream(self.readline._outputfile) | |
634 | else: |
|
634 | else: | |
635 | io.stdout = io.IOStream(sys.stdout) |
|
635 | io.stdout = io.IOStream(sys.stdout) |
@@ -313,7 +313,8 b' Currently the magic system has the following functions:""",' | |||||
313 | import IPython.utils.rlineimpl as readline |
|
313 | import IPython.utils.rlineimpl as readline | |
314 |
|
314 | |||
315 | if not shell.colors_force and \ |
|
315 | if not shell.colors_force and \ | |
316 |
not readline.have_readline and |
|
316 | not readline.have_readline and \ | |
|
317 | (sys.platform == "win32" or sys.platform == "cli"): | |||
317 | msg = """\ |
|
318 | msg = """\ | |
318 | Proper color support under MS Windows requires the pyreadline library. |
|
319 | Proper color support under MS Windows requires the pyreadline library. | |
319 | You can find it at: |
|
320 | You can find it at: |
@@ -73,7 +73,7 b" if have_readline and hasattr(_rl, 'rlmain'):" | |||||
73 | line = lineobj.TextLine(line) |
|
73 | line = lineobj.TextLine(line) | |
74 | return _rl.add_history(line) |
|
74 | return _rl.add_history(line) | |
75 |
|
75 | |||
76 | if sys.platform == 'win32' and have_readline: |
|
76 | if (sys.platform == 'win32' or sys.platform == 'cli') and have_readline: | |
77 | try: |
|
77 | try: | |
78 | _outputfile=_rl.GetOutputFile() |
|
78 | _outputfile=_rl.GetOutputFile() | |
79 | except AttributeError: |
|
79 | except AttributeError: |
General Comments 0
You need to be logged in to leave comments.
Login now