Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
X-Apparently-From: <vihs@rocketmail.com>
Message-ID: <39351A70.4238B2B8@rocketmail.com>
Date: Wed, 31 May 2000 19:28:08 +0530
From: Shiv Kumar <vihs@rocketmail.com>
Organization: Aztec Software, http://www.aztec.soft.net
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: Andrew Patrzalek <apatrza1@rochester.rr.com>,
        cygwin <cygwin@sourceware.cygnus.com>
Subject: Re: less problem
References: <392FD5F2.33908B37@rocketmail.com> <016001bfcaa1$dd4204e0$0201a8c0@home.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

if I do not use the -r option in less command I get the following output :

$ ls -l | less
ESC[0mtotal 12031
drwxr-xr-x   2 shiv     Administ    36864 May 24 15:19 ESC[01;34m.ESC[0m/
drwxr-xr-x  13 shiv     Administ     4096 Apr 26 20:27 ESC[01;34m..ESC[0m/
-rwxr-xr-x   1 shiv     Administ   107892 Apr 21 02:31 ESC[01;32maddftinfo.exe
ESC[0m*
-rwxr-xr-x   1 shiv     Administ   202752 Feb  4 08:39 ESC[01;32maddr2line.exe

$ ls -l | less -r
total 12031
drwxr-xr-x   2 shiv     Administ    36864 May 24 15:19 ./
drwxr-xr-x  13 shiv     Administ     4096 Apr 26 20:27 ../
-rwxr-xr-x   1 shiv     Administ   107892 Apr 21 02:31 addftinfo.exe*
-rwxr-xr-x   1 shiv     Administ   202752 Feb  4 08:39 addr2line.exe*

I have aliased ls='ls --color'. After changing it to alias ls='ls --color=tty'

$ ls -l | less

works fine.


Andrew Patrzalek wrote:

> On a related note, in /etc/man.conf if I use PAGER=less -irs it will
> interpret the escape sequences correctly for the man pages. If I alias
> more='less -irs' I can get the neat colors for commands like ls -l | more
>  using dircolors ). The less manpage warns about using the 'r' command line
> switch. Has anyone had problems with it?
>

--
shiv
vihs@rocketmail.com

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

