##// END OF EJS Templates
Backport PR #2491: color is supported in ironpython...
MinRK -
Show More
@@ -624,7 +624,7 b' class InteractiveShell(SingletonConfigurable):'
624 624 # override sys.stdout and sys.stderr themselves, you need to do that
625 625 # *before* instantiating this class, because io holds onto
626 626 # references to the underlying streams.
627 if sys.platform == 'win32' and self.has_readline:
627 if (sys.platform == 'win32' or sys.platform == 'cli') and self.has_readline:
628 628 io.stdout = io.stderr = io.IOStream(self.readline._outputfile)
629 629 else:
630 630 io.stdout = io.IOStream(sys.stdout)
@@ -309,7 +309,8 b' Currently the magic system has the following functions:""",'
309 309 import IPython.utils.rlineimpl as readline
310 310
311 311 if not shell.colors_force and \
312 not readline.have_readline and sys.platform == "win32":
312 not readline.have_readline and \
313 (sys.platform == "win32" or sys.platform == "cli"):
313 314 msg = """\
314 315 Proper color support under MS Windows requires the pyreadline library.
315 316 You can find it at:
@@ -73,7 +73,7 b" if have_readline and hasattr(_rl, 'rlmain'):"
73 73 line = lineobj.TextLine(line)
74 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 77 try:
78 78 _outputfile=_rl.GetOutputFile()
79 79 except AttributeError:
General Comments 0
You need to be logged in to leave comments. Login now