You are not logged in.

#1 2012-05-01 16:13:59

ayr0
Member
Registered: 2010-08-12
Posts: 94

[SOLVED] weird color escapes

I'm using Konsole in XFCE and every now and then I get the following output.  The text should be colored, and sometimes it is, but annoyingly often, it is not.  Has anyone experienced this before?  If so, is there a solution?

ESC[1;31mType:       ESC[0mfunction
ESC[1;31mBase Class: ESC[0m<type 'function'>
ESC[1;31mString Form:ESC[0m<function qr at 0x9ca15dc>
ESC[1;31mNamespace:  ESC[0mInteractive
ESC[1;31mFile:       ESC[0m/usr/lib/python2.7/site-packages/scipy/linalg/decomp_qr.py
ESC[1;31mDefinition: ESC[0mESC[0mspESC[0mESC[1;33m.ESC[0mESC[0mlinalgESC[0mESC[1;33m.ESC[0mESC[0mqrESC[0mESC[1;33m(ESC[0mESC[0maESC[0mESC[1;33m,ESC[0m ESC[0moverwrite_aESC[0mESC[1;33m=ESC[0mESC[0mFalseESC[0mESC[1;33m,ESC[0m ESC[0mlworkESC[0mESC[1;33m=ESC[0mESC[0mNoneESC[0mESC[1;33m,ESC[0m ESC[0mmodeESC[0mESC[1;33m=ESC[0mESC[1;34m'full'ESC[0mESC[1;33m,ESC[0m ESC[0mpivotingESC[0mESC[1;33m=ESC[0m
ESC[0mFalseESC[0mESC[1;33m)ESC[0mESC[1;33mESC[0mESC[0m
ESC[1;31mSource:ESC[0m
ESC[1;32mdefESC[0m ESC[0mqrESC[0mESC[1;33m(ESC[0mESC[0maESC[0mESC[1;33m,ESC[0m ESC[0moverwrite_aESC[0mESC[1;33m=ESC[0mESC[0mFalseESC[0mESC[1;33m,ESC[0m ESC[0mlworkESC[0mESC[1;33m=ESC[0mESC[0mNoneESC[0mESC[1;33m,ESC[0m ESC[0mmodeESC[0mESC[1;33m=ESC[0mESC[1;34m'full'ESC[0mESC[1;33m,ESC[0m ESC[0mpivotingESC[0mESC[1;33m=ESC[0mESC[0mFalseESC[0mESC[1;33m)ESC[0mESC[1;33m:ESC[0m
    ESC[1;34m"""Compute QR decomposition of a matrix.ESC[0m
ESC[1;34mESC[0m
ESC[1;34m    Calculate the decomposition :lm:`A = Q R` where Q is unitary/orthogonalESC[0m
ESC[1;34m    and R upper triangular.ESC[0m
ESC[1;34mESC[0m
ESC[1;34m    ParametersESC[0m
ESC[1;34m    ----------ESC[0m

Last edited by ayr0 (2012-05-01 20:02:16)

Offline

#2 2012-05-01 20:01:49

ayr0
Member
Registered: 2010-08-12
Posts: 94

Re: [SOLVED] weird color escapes

Solved.  I needed to export LESS="-R" to my environment.

Offline

Board footer

Powered by FluxBB