diff options
author | joe <joe@FreeBSD.org> | 2000-06-05 02:14:01 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-05 02:14:01 +0000 |
commit | 6bddd8294aa4e9b7e4a66bff9c54de93da25168c (patch) | |
tree | 4b2add70f4438049835782f1038234b01e567c23 /bin/ls/ls.h | |
parent | e0bbf8350ab6353586ba169e70f2057a1ffc4e34 (diff) | |
download | FreeBSD-src-6bddd8294aa4e9b7e4a66bff9c54de93da25168c.zip FreeBSD-src-6bddd8294aa4e9b7e4a66bff9c54de93da25168c.tar.gz |
* Re-implement colour support using termcap's AF and AB capabilities
to manage the ANSI colour sequences. Colour support is disabled
unless the TERM environment variable references a valid termcap.
* Allow optional compilation of the colour support in the Makefile,
defaulting to yes. This allows us to switch it off for fixit
floppies and other mediums where space is an issue and the extra
bloat of statically linking with ncurses isn't acceptable.
* Display a warning if colour is requested with '-G' but support
for it isn't compiled in.
Diffstat (limited to 'bin/ls/ls.h')
-rw-r--r-- | bin/ls/ls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ls/ls.h b/bin/ls/ls.h index 9fbe985..3da163d 100644 --- a/bin/ls/ls.h +++ b/bin/ls/ls.h @@ -53,7 +53,9 @@ 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 */ +#ifdef COLORLS extern int f_color; /* add type in color for non-regular files */ +#endif typedef struct { FTSENT *list; |