diff options
author | tjr <tjr@FreeBSD.org> | 2005-05-14 05:26:48 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2005-05-14 05:26:48 +0000 |
commit | a47b9a8adc1c42abf03a5d0793524abac8b23e8d (patch) | |
tree | 8a757e8f8787dea4e97e7031245fd5d11c2d10da /gnu | |
parent | bcfd7ad6a67ba5604d3476f7f550578829deeb5d (diff) | |
download | FreeBSD-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')
-rw-r--r-- | gnu/usr.bin/grep/grep.c | 1 |
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)) |