summaryrefslogtreecommitdiffstats
path: root/bin/ls/extern.h
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2000-06-05 02:14:01 +0000
committerjoe <joe@FreeBSD.org>2000-06-05 02:14:01 +0000
commit6bddd8294aa4e9b7e4a66bff9c54de93da25168c (patch)
tree4b2add70f4438049835782f1038234b01e567c23 /bin/ls/extern.h
parente0bbf8350ab6353586ba169e70f2057a1ffc4e34 (diff)
downloadFreeBSD-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/extern.h')
-rw-r--r--bin/ls/extern.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ls/extern.h b/bin/ls/extern.h
index 25e79b0..82e0207 100644
--- a/bin/ls/extern.h
+++ b/bin/ls/extern.h
@@ -51,5 +51,8 @@ void printscol __P((DISPLAY *));
void usage __P((void));
int len_octal __P((char *, int));
int prn_octal __P((char *));
+#ifdef COLORLS
void parsecolors __P((char *cs));
int colortype __P((mode_t mode));
+void endcolor __P((void));
+#endif
OpenPOWER on IntegriCloud