Hi, On Tue, 25 Aug 2009, Elmar Stellnberger wrote:
try 'zypper lu | lv' instead. lv supports ansi escape characters; less does not.
less -R will do the right thing (maybe amending LESSANSIENDCHARS), hence just do 'LESS="$LESS -R"' in .bashrc or something. But really, zypper should check isatty(1) before activating color output.
This is rather a 'bug' of less than a problem of zypper since a pure 'zypper lu' should give a colored output as well.
I disagree. less (and similar programs) should _not_ by default interpret ANSI sequences, otherwise looking at files that contain arbitrary binary crap could fiddle with the terminal settings. Optional is okay. Ciao, Michael. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org