delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/31/10:15:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Apparently-From: <vihs AT rocketmail DOT com>
Message-ID: <39351A70.4238B2B8@rocketmail.com>
Date: Wed, 31 May 2000 19:28:08 +0530
From: Shiv Kumar <vihs AT rocketmail DOT 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 AT rochester DOT rr DOT com>,
cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: less problem
References: <392FD5F2 DOT 33908B37 AT rocketmail DOT com> <016001bfcaa1$dd4204e0$0201a8c0 AT home DOT net>

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 AT rocketmail DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019