ipython 6.1.0 ansi color style attribute seem not work. #10682

Open
sunose opened this Issue Jun 29, 2017 · 4 comments

Comments

Projects
None yet
3 participants

sunose commented Jun 29, 2017

now using window 10 console cmd.exe
python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

the ansi color escape codes underline style not work.
print("\033[4;37;40m Underlined text\033[0m \n")

sunose changed the title from ipython 6.0 ansi color style attribute seem not work. to ipython 6.1.0 ansi color style attribute seem not work. Jun 29, 2017

Owner

Carreau commented Jun 29, 2017

does it work in pain Python console ? IPython does not process the escape code. your console does. If it does not work in your console it is likely a bug in your console.

Carreau added this to the not ipython milestone Jun 29, 2017

takluyver removed this from the not ipython milestone Jul 3, 2017

Owner

takluyver commented Jul 3, 2017

@Carreau that's not quite accurate on Windows - we set up the colorama library to transform ANSI escapes into Windows console API calls.

@sunose Do you see colours in the output of zip??

sunose commented Jul 10, 2017

@takluyver most ansi color scheme worked,but only Underline style not work.
it seem ansi convert to win32 miss underline style.

takluyver added this to the no action milestone Jul 10, 2017

Owner

takluyver commented Jul 10, 2017

In that case, I think you need to request it as a feature in colorama. I don't think we use underlines anywhere within IPython, so this isn't a bug from our point of view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment