summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/grep
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2005-05-14 05:26:48 +0000
committertjr <tjr@FreeBSD.org>2005-05-14 05:26:48 +0000
commita47b9a8adc1c42abf03a5d0793524abac8b23e8d (patch)
tree8a757e8f8787dea4e97e7031245fd5d11c2d10da /gnu/usr.bin/grep
parentbcfd7ad6a67ba5604d3476f7f550578829deeb5d (diff)
downloadFreeBSD-src-a47b9a8adc1c42abf03a5d0793524abac8b23e8d.zip
FreeBSD-src-a47b9a8adc1c42abf03a5d0793524abac8b23e8d.tar.gz
Fix background colour problems with --color output (RH bug #138913).
Obtained from: Karsten Hopp via Fedora
Diffstat (limited to 'gnu/usr.bin/grep')
-rw-r--r--gnu/usr.bin/grep/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/usr.bin/grep/grep.c b/gnu/usr.bin/grep/grep.c
index 1cd8b34..b339f1d 100644
--- a/gnu/usr.bin/grep/grep.c
+++ b/gnu/usr.bin/grep/grep.c
@@ -674,6 +674,7 @@ prline (char const *beg, char const *lim, int sep)
fputs ("\33[00m", stdout);
beg = b + match_size;
}
+ fputs ("\33[K", stdout);
}
fwrite (beg, 1, lim - beg, stdout);
if (ferror (stdout))
OpenPOWER on IntegriCloud