From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corinna Vinschen To: Chris Telting Cc: cygwin@sourceware.cygnus.com Subject: Re: Less and More Color Date: Mon, 23 Aug 1999 02:32:00 -0000 Message-id: <37C11354.91AA9570@vinschen.de> References: <000b01beec6c$8d08f470$ddc856d1@hercules> <010701beed11$a2e4e790$a4c856d1@hercules> X-SW-Source: 1999-08/msg00553.html Chris Telting wrote: > > A general *nix question: > > Why doesn't less correctly handle color when I do a > vdir --color | less > although > vdir --color | more > does handle the colors properly. > > It can't be that less doesn't handle color since when I do > man(while uses less) keywords apprear in color. It _is_ less! Try: ls -l --color | less -r -r is the command line switch for raw input handling. If you don't use it, less converts the control sequences generated by the color option of ls into it's special control sequence output. `more' doesn't "handle" this sequences but is to dumb to detect them. Corinna -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corinna Vinschen To: Chris Telting Cc: cygwin@sourceware.cygnus.com Subject: Re: Less and More Color Date: Tue, 31 Aug 1999 23:49:00 -0000 Message-ID: <37C11354.91AA9570@vinschen.de> References: <000b01beec6c$8d08f470$ddc856d1@hercules> <010701beed11$a2e4e790$a4c856d1@hercules> X-SW-Source: 1999-08n/msg00553.html Message-ID: <19990831234900.v0YNmZsPMkTCXCBZIMjRlWr5_j4zit-qutPEfgFSbEM@z> Chris Telting wrote: > > A general *nix question: > > Why doesn't less correctly handle color when I do a > vdir --color | less > although > vdir --color | more > does handle the colors properly. > > It can't be that less doesn't handle color since when I do > man(while uses less) keywords apprear in color. It _is_ less! Try: ls -l --color | less -r -r is the command line switch for raw input handling. If you don't use it, less converts the control sequences generated by the color option of ls into it's special control sequence output. `more' doesn't "handle" this sequences but is to dumb to detect them. Corinna -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com