]> git.baikalelectronics.ru Git - kernel.git/commit
vt/fbcon: fix background color on line feed
authorJan Engelhardt <jengelh@medozas.de>
Mon, 12 May 2008 21:02:39 +0000 (14:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 May 2008 15:02:26 +0000 (08:02 -0700)
commit0a657d550e568a63615736cdfb27a4adf0830c35
tree822cfbf9b6214deecb178c86ba7d688a6c16c0ca
parent260134dbbef01d85b3bd41194c7ef8ef6a06be33
vt/fbcon: fix background color on line feed

Another addendum to commit e11549460c9d495c777ec6063abcf5667957a4d3
("vt: fix background color on line feed").

fbcon still was not doing the right thing (read: continued to do old
behavior).  fbcon_clear() seems to clear the new line (e.g.  where your new
prompt appears after doing echo -en "\e[42mfoo\n"), while scr_memsetw clears
the previous one only (where "foo" appears).  So just temporarily set the
video_erase_char to the scrl_erase_char so that fbcon_clear does the right
thing.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/console/fbcon.c