interesting -- thank you Jan for sharing. In my experience I have not observed that ... because long ago I set my LESS environment variables to
$> export | grep -e LESS -e PAGER GIT_PAGER='less --no-init --quit-if-one-screen' LESS='--ignore-case --LONG-PROMPT --force --raw-control-chars --SILENT' LESSCLOSE='/usr/bin/lesspipe %s %s' LESSHISTFILE=/home/yoh/.var/less/history LESSOPEN='| /usr/bin/lesspipe %s' PAGER='less -R' so in my case I use -R (not -r) which might be more preferable since it takes care only about ANSI color codes (although I also have --raw-control-chars in general for less). Cheers! On Tue, 29 Jan 2013, Jan Derrfuss wrote: > Dear All, > It took me a while to figure this one out, so I thought I'll post > the solution to the mailing list in case someone else has the same > issues. > When I used object_name? or object_name?? in IPython, I frequently > (but not always) had output with color escape sequences looking like > this: > ESC[0;31mType: ESC[0mAttributesCollector > (...) > After a while, I realized that this only happens with longer output. > It turned out that the underlying problem is that longer output is > passed to a pager (e.g., less) before it is displayed. For example, > in my .bashrc I had set the pager to less: > export PAGER=less > The problem was solved by using less -r instead: > PAGER='less -r' > Best, > Jan > _______________________________________________ > Pkg-ExpPsy-PyMVPA mailing list > [email protected] > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa -- Yaroslav O. Halchenko Postdoctoral Fellow, Department of Psychological and Brain Sciences Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 WWW: http://www.linkedin.com/in/yarik _______________________________________________ Pkg-ExpPsy-PyMVPA mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa

