summaryrefslogtreecommitdiffstats
path: root/bin/ls/ls.h
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2000-06-02 14:53:42 +0000
committerjoe <joe@FreeBSD.org>2000-06-02 14:53:42 +0000
commit9ad4da2e704de18c0d98495a5cdb9f62cb2e51ad (patch)
tree02f28297b98ef50fecef93835542760c91059cb8 /bin/ls/ls.h
parenta92f3a6a0abe25f8ef1b9690fca480fd0328d65d (diff)
downloadFreeBSD-src-9ad4da2e704de18c0d98495a5cdb9f62cb2e51ad.zip
FreeBSD-src-9ad4da2e704de18c0d98495a5cdb9f62cb2e51ad.tar.gz
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.
Diffstat (limited to 'bin/ls/ls.h')
-rw-r--r--bin/ls/ls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ls/ls.h b/bin/ls/ls.h
index 33c98c4..9fbe985 100644
--- a/bin/ls/ls.h
+++ b/bin/ls/ls.h
@@ -53,6 +53,7 @@ extern int f_size; /* list size in short listing */
extern int f_statustime; /* use time of last mode change */
extern int f_notabs; /* don't use tab-separated multi-col output */
extern int f_type; /* add type character for non-regular files */
+extern int f_color; /* add type in color for non-regular files */
typedef struct {
FTSENT *list;
OpenPOWER on IntegriCloud