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--> > > > **

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, t

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

2004-07-01 Thread Hannu E K Nevalainen
at particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of geneSmith > Sent: Thursday, July 01, 2004 3:56 PM > To: [EMAIL PROTECTED] > Subject: Re: ls -l

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 ou

Re: ls -l | less shows "escape" chars

2004-07-01 Thread geneSmith
Clemson, Chris wrote, On 7/1/2004 10:17 AM: what OS are you actually connected to via your terminal? I am just running cygwin via a rxvt terminal on win2k. I fixed it by putting alias less="less -R" in ~/.bash_profile. -gene -- Lit up like Levy's -- Unsubscribe info: http://cygwin.com/ml/#unsu

Re: ls -l | less shows "escape" chars

2004-07-01 Thread Joe
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 -x if you never want col

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

2004-07-01 Thread Clemson, Chris
> export TERM=vt100 > had no effect. > > Where is the terminfo/termcap stuff? good question - it's been a while since i've tried to change it - it wasn't easy (for me anyway) so i gave up eventually. you'll have to look it up on the web. what OS are you actually connected to via your terminal? >

Re: ls -l | less shows "escape" chars

2004-07-01 Thread Christopher Faylor
On Thu, Jul 01, 2004 at 09:55:39AM -0400, geneSmith wrote: >Luc Hermitte wrote, On 7/1/2004 9:14 AM: >>* 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 PAG

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
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, man less started working again. I d

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 t

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: http://cygwin.com/ml/#unsub

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 terminf

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 w

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 li

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--+

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.

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: http://cygwin.com/ml/#