less and color
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reply to: