From owner-cvs-all Fri Jun 2 7:53:50 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B47B37B6BF; Fri, 2 Jun 2000 07:53:43 -0700 (PDT) (envelope-from joe@FreeBSD.org) Received: (from joe@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA57857; Fri, 2 Jun 2000 07:53:42 -0700 (PDT) (envelope-from joe@FreeBSD.org) Message-Id: <200006021453.HAA57857@freefall.freebsd.org> From: Josef Karthauser Date: Fri, 2 Jun 2000 07:53:42 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ls extern.h ls.1 ls.c ls.h print.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG joe 2000/06/02 07:53:42 PDT Modified files: bin/ls extern.h ls.1 ls.c ls.h print.c Log: Add colour support to /bin/ls (at a cost of 1056 bytes on my system). It is not switched on by default and must be enabled with the -G flag. When using ls -G the output behaviour is modified with ANSI colour sequences wrapped around filenames to help distinguish file types. (Colours can be redefined in the LSCOLORS environment variable as described in the manual page.) Colour support is silently disabled (if switched on) if stdout isn't a tty. Based on: asami's colorls port. PR: bin/18900 && ports/18616. Revision Changes Path 1.8 +3 -1 src/bin/ls/extern.h 1.34 +76 -2 src/bin/ls/ls.1 1.33 +14 -4 src/bin/ls/ls.c 1.12 +2 -1 src/bin/ls/ls.h 1.20 +130 -1 src/bin/ls/print.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message