Those are ANSI colors. It tries to color the expression in terminals
that support it. It should probably disable this in those that don't
(there is already code in the test framework to check for this).

By the way, it looks like this function wasn't updated for Python 3:
it still uses raw_input.

If you press ?, it tells you what all the commands mean.

Aaron Meurer

On Mon, Oct 7, 2013 at 5:56 PM, Chris Smith <[email protected]> wrote:
> Can anyone give me a pointer as to what environment interactive traversal
> (from iterables) works best in? I tried under a cmd window in Windows from
> IPython and from an isympy session and although I see various codes
> interspersed with the output, I don't get anything that is useful. And any
> documentation as to what the 0-1 or r,f,l,d mean (right, forward, left,
> down?)
>
>>>> sympy.utilities.iterables.interactive_traversal(x/(x+1/y))
> Current expression (stage ←[1;33m0←[0m):←[0m
> ←[1;36m
>   x
> -----
>     1
> x + -
>     y
> ←[0m
> ←[0;32m[←[1;32m0←[0;32m] ←[0;34m<class 'sympy.core.symbol.Symbol'>←[0m←[0m
> x
>
> ←[0;32m[←[1;32m1←[0;32m] ←[0;34m<class 'sympy.core.power.Pow'>←[0m←[0m
>   1
> -----
>     1
> x + -
>     y
>
> Your choice [0-1,f,l,r,d,?]: 1
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to