My issue with this is that while
--
ls --color=always | less -r
--
works nicely,
--
ls --color=always file.txt
--
does not ( color codes ). I would like to include aliases to 'ls' and 'less' in
my login profile to have '--color' and '-r' respectively, but run into the
aforementioned
On 26/1/2000 [EMAIL PROTECTED] wrote:
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
Then ls is sensing its output device and works accordingly? How does it do
that?
With the isatty(3) function.
HTH,
Eric
--
E.L. Meijer ([EMAIL PROTECTED])
Eindhoven Univ. of Technology
Lab. for Catalysis and Inorg. Chem. (SKA)
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: [EMAIL PROTECTED]
Date:
- I have got the same problem with 'more' and 'less' too.
-
- How did you configure 'ls' for displaying colors when piping to 'more' ?
- 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 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.
[EMAIL PROTECTED] wrote:
: I have got the same problem with 'more' and 'less' too.
: How did you configure 'ls' for displaying colors when piping to
On 26/1/2000 [EMAIL PROTECTED] wrote:
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
On 26/1/2000 [EMAIL PROTECTED] wrote:
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
Asher Haig [EMAIL PROTECTED] writes:
That doesn't seem to do anything different. My problem is that when I
pipe an ls to less, I end up with a bunch of b/w color codes instead of
colors. Makes it hard to read.
Did you do ls -r? That seems to be the key.
--
Michael D. Harnois, Redeemer
George Bonser, [EMAIL PROTECTED] on 5/30/98 6:08 AM
try ls --color=always
On Thu, 30 Apr 1998, Asher Haig wrote:
Is there a version of Less that will support color ls?
That doesn't seem to do anything different. My problem is that when I
pipe an ls to less, I end up with a bunch of b/w
On Thu, 30 Apr 1998, Asher Haig wrote:
Is there a version of Less that will support color ls?
ls --color=always | less -r
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
On Thu, 30 Apr 1998, Asher Haig wrote:
Is there a version of Less that will support color ls?
Asher
My settings are as follows. I have no trouble with ls |less.
09:49:54:~$alias ls
alias ls='/usr/bin/color-ls $LS_OPTIONS '
09:49:58:~$echo $LS_OPTIONS
--8bit --color=tty -F
--David
David B
12 matches
Mail list logo