diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2005-05-14 05:26:48 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2005-05-14 05:26:48 +0000 |
commit | 833d4d167b456efce3697ceac372a3f9c528a463 (patch) | |
tree | 8a757e8f8787dea4e97e7031245fd5d11c2d10da /gnu/usr.bin | |
parent | 7daa3570e4485df3ae442c8f468f9b43b4cd88b0 (diff) | |
download | src-833d4d167b456efce3697ceac372a3f9c528a463.tar.gz src-833d4d167b456efce3697ceac372a3f9c528a463.zip |
Fix background colour problems with --color output (RH bug #138913).
Obtained from: Karsten Hopp via Fedora
Notes
Notes:
svn path=/head/; revision=146203
Diffstat (limited to 'gnu/usr.bin')
-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 1cd8b34db9fe..b339f1d319b6 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)) |