Re: New IPython 5 prompt

Thomas Kluyver <[email protected]> Sun, 21 Aug 2016 16:05:52 +0100
Newsgroups gmane.comp.python.ipython.user
Message-ID <CAOvn4qhtTxVbdU7oyinp-69qm2sq_e01waZ8DS=caYYdYWL6Bg@mail.gmail.com>
--===============2022163304719677950==
Content-Type: multipart/alternative; boundary=001a113f11224c0cf9053a9646c5

--001a113f11224c0cf9053a9646c5
Content-Type: text/plain; charset=UTF-8

On 21 August 2016 at 15:46, Thorsten Kampe <[email protected]>
wrote:

> Unfortunately setting color (like `'{color.LightCyan}>>> '` seems not
> to be supported anymore.
>

If you do what you have already shown, then you can set a colour for the
prompt token:

TIS.highlighting_style_overrides = {Token.Prompt: '#0077FF'}

We appreciate this is a bit more fiddly for simple custom prompts, but the
advantages of using prompt_toolkit outweigh it.

--001a113f11224c0cf9053a9646c5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On 2=
1 August 2016 at 15:46, Thorsten Kampe <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:[email protected]" target=3D"_blank">[email protected]<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div id=3D":1sv" class=3D"">Unfortunately setting color (like `&#39;{color.=
LightCyan}&gt;&gt;&gt; &#39;` seems not<br>
to be supported anymore.</div></blockquote></div><br></div><div class=3D"gm=
ail_extra">If you do what you have already shown, then you can set a colour=
 for the prompt token:<br><br></div><div class=3D"gmail_extra">TIS.highligh=
ting_style_overrides =3D {Token.Prompt: &#39;#0077FF&#39;}<br><br></div><di=
v class=3D"gmail_extra">We appreciate this is a bit more fiddly for simple =
custom prompts, but the advantages of using prompt_toolkit outweigh it.<br>=
</div></div>

--001a113f11224c0cf9053a9646c5--

--===============2022163304719677950==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
IPython-User mailing list
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-user

--===============2022163304719677950==--