[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: less and color



more handles colors fine. But you must add the --color option
to ls when piping if you want colors.

less needs the -r option to handle colors.


lorenzo.zampese@notes.electrolux.it wrote:
: I have got the same problem with 'more' and 'less' too.

: How did you configure 'ls' for displaying colors when piping to 'more' ?

: Thank you.

:            ------------------ Memo - Header -------------------

: To:       debian-user@lists.debian.org

: cc:

: From:     ljh@mail.net-labs.com

: Date:     26/01/2000 14:16:05 GMT
:           26/01/2000 15:24:58

: Subject:  less and color

:             ----------------- Memo - Message ------------------




: I have setup the ls command to use the display color option using an
: alias.  It works fine.  Colors are also displayed nicely when piping
: ls stdout to the more command.  I want to use less instead of
: more.  However, when piping ls stdout to the less command, less displays
: the directory listing in b/w and with control characters (escape seq with
: hex numbers?) around the filenames instead of just using the correct
: colors.

: Has anyone out there fixed this problem?  I have tried changing the
: LESSCHARSET env. variable with no luck.  Advice or tips would be
: appreciated.  I should mention that I am using the console with
: $TERM=linux.

: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
: larry holish             ljh@isg.net-labs.com
: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


: --
: Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
: /dev/null





: -- 
: Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

-- 
*********************** Running Debian Linux ***********************
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...    John 3:16  *
* W. Paul Mills              *  Topeka, Kansas, U.S.A.              *
* EMAIL= Paul@Mills-USA.com  *  WWW= http://Mills-USA.com/          *
* Bill, I was there several years ago, why would I want to go back? *
************* pgp public key on keyservers everywhere? *************/
-- 


Reply to: