commit 07ae21e43e8d09c97e3e24c963bf837ef5f6e4cd
parent 95bf389e26ee4533ef4332b45340ef62be33e08b
Author: Jordan Ritter <jpr5@darkridge.com>
Date: Thu, 14 Dec 2006 00:19:33 +0000
switched from -H to -C (original patch suggestion); seems to make more
sense anyway given that some terms don't show bold as well as they do
straight out color.
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ngrep.c b/ngrep.c
@@ -200,7 +200,7 @@ int main(int argc, char **argv) {
setlocale(LC_ALL, "");
#endif
- while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMHs:n:c:d:A:I:O:S:P:F:W:")) != EOF) {
+ while ((c = getopt(argc, argv, "LNhXViwqpevxlDtTRMCs:n:c:d:A:I:O:S:P:F:W:")) != EOF) {
switch (c) {
case 'W': {
if (!strcasecmp(optarg, "normal"))
@@ -262,7 +262,7 @@ int main(int argc, char **argv) {
if (value > 0)
snaplen = value;
} break;
- case 'H':
+ case 'C':
enable_hilite = 1;
break;
case 'M':
@@ -986,7 +986,7 @@ void dump_byline(unsigned char *data, uint32_t len, uint16_t mindex, uint16_t ms
while (s < data + len) {
if (enable_hilite && !hiliting && (s == data + mindex)) {
hiliting = 1;
- printf(ANSI_bold);
+ printf(ANSI_hilite);
}
printf("%c", (*s == '\n' || isprint(*s)) ? *s : nonprint_char);
@@ -1010,7 +1010,7 @@ void dump_unwrapped(unsigned char *data, uint32_t len, uint16_t mindex, uint16_t
while (s < data + len) {
if (enable_hilite && !hiliting && (s == data + mindex)) {
hiliting = 1;
- printf(ANSI_bold);
+ printf(ANSI_hilite);
}
printf("%c", isprint(*s) ? *s : nonprint_char);
@@ -1041,7 +1041,7 @@ void dump_formatted(unsigned char *data, uint32_t len, uint16_t mindex, uint16_t
for (j = 0; j < width; j++) {
if (enable_hilite && (mindex <= (i+j) && (i+j) < mindex + msize)) {
hiliting = 1;
- printf(ANSI_bold);
+ printf(ANSI_hilite);
}
if (i + j < len)
@@ -1061,7 +1061,7 @@ void dump_formatted(unsigned char *data, uint32_t len, uint16_t mindex, uint16_t
for (j = 0; j < width; j++) {
if (enable_hilite && mindex <= (i+j) && (i+j) < mindex + msize) {
hiliting = 1;
- printf(ANSI_bold);
+ printf(ANSI_hilite);
}
if (i + j < len)