Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jun 2000 19:12:38 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Jim Freeze <jim@freeze.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Need help with more
Message-ID:  <393FD406.53346008@i-clue.de>
References:  <Pine.BSF.4.21.0006080844210.22635-100000@web2.sea.nwserv.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Jim Freeze wrote:

> I have added gnuls to my system and do like the colors.
>
>   alias dir='gnuls --color -alF'
>
> However, when a directory listing is too large, I
> typically pipe it to more. But, when I do this, I get
> the following
>
> drwxr-xr-x  15 jfreeze  jfreeze      1536 Jun  8 11:32 ^[[01;34m.^[[0m/
> drwxr-xr-x   4 mfreeze  mfreeze       512 May 21 17:16 ^[[01;34m..^[[0m/
> -rw-------   1 jfreeze  jfreeze       204 Jun  8 11:32
> [snip]
>
> isteand of the normal
>
> drwxr-xr-x  15 jfreeze  jfreeze     1536 Jun  8 11:32 ./
> drwxr-xr-x   4 mfreeze  mfreeze      512 May 21 17:16 ../
> -rw-------   1 jfreeze  jfreeze      204 Jun  8 11:32 .Xauthority
> [snip]
>
> The --color argument is what is causing the problems, but shouldn't more
> be able to handle this?

more is not ANSI escape sequence compatible. Use less or most (both in the
ports) to replace more, both are better suited to this task.

HTH
-Christoph Sold



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?393FD406.53346008>