ls -l | less shows escape chars

2004-07-01 Thread geneSmith
When I do ls -l | less a typical line looks like this with ESC in reverse video and other weird chars. What causes this? Can it be fixed? -rwx--+ 1 Administ 1392640 Jul 1 08:31 ESC[01;32mNTUSER.DATESC[0m -- Lit up like Levy's -- Unsubscribe info:

RE: ls -l | less shows escape chars

2004-07-01 Thread Clemson, Chris
When I do ls -l | less a typical line looks like this with ESC in reverse video and other weird chars. What causes this? Can it be fixed? -rwx--+ 1 Administ 1392640 Jul 1 08:31 ESC[01;32mNTUSER.DATESC[0m that looks suspiciously like ANSI (colour) escape codes. is your

Re: ls -l | less shows escape chars

2004-07-01 Thread Joe
Do you have ls aliased to ls --color? Try: /bin/ls | less geneSmith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I do ls -l | less a typical line looks like this with ESC in reverse video and other weird chars. What causes this? Can it be fixed? -rwx--+ 1 Administ

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Clemson, Chris wrote, On 7/1/2004 8:50 AM: When I do ls -l | less a typical line looks like this with ESC in reverse video and other weird chars. What causes this? Can it be fixed? -rwx--+ 1 Administ 1392640 Jul 1 08:31 ESC[01;32mNTUSER.DATESC[0m that looks suspiciously like

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Joe wrote, On 7/1/2004 9:02 AM: Do you have ls aliased to ls --color? Try: /bin/ls | less That fixes it. Should I not use color? geneSmith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I do ls -l | less a typical line looks like this with ESC in reverse video and other weird

RE: ls -l | less shows escape chars

2004-07-01 Thread Clemson, Chris
that looks suspiciously like ANSI (colour) escape codes. is your terminal setting correct? $ echo $TERM xterm hmm, try setting TERM to vt100 or something, as that's quite a simple terminal type and doesn't do anything fancy other than bold and underline. of course, if your

Re: ls -l | less shows escape chars

2004-07-01 Thread Luc Hermitte
Hello, * On Thu, Jul 01, 2004 at 09:06:16AM -0400, geneSmith [EMAIL PROTECTED] wrote: Also, my less man page is totally messed up. All other man pages seem to work. I have export PAGER='less -R' in my .bashrc HTH, -- Luc Hermitte -- Unsubscribe info:

RE: ls -l | less shows escape chars

2004-07-01 Thread Buchbinder, Barry (NIH/NIAID)
or switch the alias to ls --color=auto, which will color for a simple ls but not when redirecting stdout. -Original Message- From: Joe Sent: Thursday, July 01, 2004 9:03 AM To: [EMAIL PROTECTED] Subject: Re: ls -l | less shows escape chars Do you have ls aliased to ls --color? Try

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Luc Hermitte wrote, On 7/1/2004 9:14 AM: Hello, * On Thu, Jul 01, 2004 at 09:06:16AM -0400, geneSmith [EMAIL PROTECTED] wrote: Also, my less man page is totally messed up. All other man pages seem to work. I have export PAGER='less -R' in my .bashrc HTH, man less started working again. I

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Clemson, Chris wrote, On 7/1/2004 9:13 AM: that looks suspiciously like ANSI (colour) escape codes. is your terminal setting correct? $ echo $TERM xterm hmm, try setting TERM to vt100 or something, as that's quite a simple terminal type and doesn't do anything fancy other than bold and underline.

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Luc Hermitte wrote, On 7/1/2004 9:14 AM: Hello, * On Thu, Jul 01, 2004 at 09:06:16AM -0400, geneSmith [EMAIL PROTECTED] wrote: Also, my less man page is totally messed up. All other man pages seem to work. I have export PAGER='less -R' in my .bashrc HTH, Oops, I misspoke. It is my rxvt man page

Re: ls -l | less shows escape chars

2004-07-01 Thread geneSmith
Joe wrote, On 7/1/2004 11:09 AM: Either don't use color or change it to --color=auto. I alias ls to ls -x -color=auto. Then ls | less gives you columns without escape codes. If you want a single column, use ls -1 | less. The -1 overrides the -x in the alias and gives one column. Or leave out the

Re: ls -l | less shows escape chars

2004-07-01 Thread Joe
The only downside is if you need the output to go to a file or a pipe to a different program. If you still have ls aliased to ls --color, then this: ls /tmp/filelist will still put escape codes in filelist. ls --color=auto won't - it will keep it plain ascii text. If you never do that, then

RE: ls -l | less shows 'escape' chars

2004-07-01 Thread Chris Taylor
On Thu, July 1, 2004 6:08 pm, Hannu E K Nevalainen said: For man rxvt: Use google on YODLTAGSTART and you'll eventually find a sed script and how to use it. It was posted very recently to this list. /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E --76-- ** on a mailing