Re: vt/fbcon: fix background color on line feed

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <thunder7@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, Rafael J. Wysocki <rjw@...>
Date: Wednesday, May 28, 2008 - 1:08 pm

On Tuesday 2008-05-27 21:33, thunder7@xs4all.nl wrote:

commit 7f676fb7cf34dd2982d0cf79aeea7e5b06ad91eb
Author: Jan Engelhardt <jengelh@medozas.de>
Date:   Wed May 28 10:00:41 2008 +0200

    vt: fix background color on line feed, DEC invert
    
    Original report: """I used to force my console to black-on-white by
    the command `setterm -inversescreen on`. In 2.6.26-rc4, I get lots of
    black background characters."""
    
    Another addendum to commit c9e587ab.
    This was previously missed out since I was not aware of what
    vc_decscnm was for.
    
    Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 drivers/char/vt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index fa1ffbf..b8b2498 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -434,7 +434,7 @@ static void update_attr(struct vc_data *vc)
 	              vc->vc_blink, vc->vc_underline,
 	              vc->vc_reverse ^ vc->vc_decscnm, vc->vc_italic);
 	vc->vc_video_erase_char = (build_attr(vc, vc->vc_color, 1, vc->vc_blink, 0, vc->vc_decscnm, 0) << 8) | ' ';
-	vc->vc_scrl_erase_char = (build_attr(vc, vc->vc_def_color, 1, false, false, false, false) << 8) | ' ';
+	vc->vc_scrl_erase_char = (build_attr(vc, vc->vc_def_color, 1, false, false, vc->vc_decscnm, false) << 8) | ' ';
 }
 
 /* Note: inverting the screen twice should revert to the original state */
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vt/fbcon: fix background color on line feed, Jan Engelhardt, (Sat May 10, 4:17 am)
Re: vt/fbcon: fix background color on line feed, Jan Engelhardt, (Wed May 28, 1:08 pm)