From a47b9a8adc1c42abf03a5d0793524abac8b23e8d Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 14 May 2005 05:26:48 +0000 Subject: Fix background colour problems with --color output (RH bug #138913). Obtained from: Karsten Hopp via Fedora --- gnu/usr.bin/grep/grep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/usr.bin/grep') 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)) -- cgit v1.1