diff options
author | hubertf <hubertf> | 2001-01-24 03:53:06 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-01-24 03:53:06 +0000 |
commit | efbc04fc2ec471b51c4985e03f1b451af8c23882 (patch) | |
tree | cf265f2cbb89df8ec69d9e694e126d5f1311b4f7 /misc/colortail/patches | |
parent | 7dabce868a912f7e55058a7bf8b5e04eaab70eee (diff) | |
download | pkgsrc-efbc04fc2ec471b51c4985e03f1b451af8c23882.tar.gz |
Add colortail-0.3.0: colour-able replacement for tail(1)
Colortail works like the standard tail but it can optionally read
a color config file where it's specified expressions that results in colors.
It can be used to quickly get an overview of interesting activity by
ie. colorize those brightred or some other color of your choose.
Examples of the color configuration files are
in $PREFIX/share/examples/colortail.
XXX patch-aa replaced to work around a bug in this program that assumes
non posix/ansi semantics of fgetc(): clearerr() must be used after
EOF from fgetc() to read any new data.
Diffstat (limited to 'misc/colortail/patches')
-rw-r--r-- | misc/colortail/patches/patch-aa | 16 | ||||
-rw-r--r-- | misc/colortail/patches/patch-ab | 14 |
2 files changed, 30 insertions, 0 deletions
diff --git a/misc/colortail/patches/patch-aa b/misc/colortail/patches/patch-aa new file mode 100644 index 00000000000..c711fb98b28 --- /dev/null +++ b/misc/colortail/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/01/24 03:53:06 hubertf Exp $ + +--- TailFile.cc.orig Wed Jan 24 04:44:29 2001 ++++ TailFile.cc +@@ -417,7 +417,10 @@ + int ch = fgetc(m_file); + + // add the character to the string +- m_follow_buffer->put(ch); ++ if (ch == EOF) ++ clearerr(m_file); // required by POSIX and ANSI ++ else ++ m_follow_buffer->put(ch); + + // check if return + if (ch == '\n') diff --git a/misc/colortail/patches/patch-ab b/misc/colortail/patches/patch-ab new file mode 100644 index 00000000000..f62787566f0 --- /dev/null +++ b/misc/colortail/patches/patch-ab @@ -0,0 +1,14 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/01/24 03:53:06 hubertf Exp $ + +--- CfgFileParser.h.old Wed Jun 21 12:55:57 2000 ++++ CfgFileParser.h Wed Jun 21 12:56:09 2000 +@@ -24,7 +24,9 @@ + #include "config.h" + + #include <sys/types.h> ++#if !defined(__NetBSD__) + #include <regex.h> ++#endif + #include <fstream.h> + + #ifdef HAVE_GNUREGEX_H |