Skip to contentSkip to conversation

fbcon: Fix screen artifacts when moving cursor

PATCH New Antonino A. Daplas 1 participant 1 message Jan 23, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbcon: Fix screen artifacts when moving cursor

When moving the cursor by writing to /dev/vcs*, the old cursor image is not erased. Fix by hiding the cursor first before moving the cursor to the new position.

---

 drivers/char/vt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/vt.c +1 -0
index f1d9cb7..0900d1d 100644
@@ -3213,6 +3213,7 @@ void getconsxy(struct vc_data *vc, unsig
 
 void putconsxy(struct vc_data *vc, unsigned char *p)
 {
+	hide_cursor(vc);
 	gotoxy(vc, p[0], p[1]);
 	set_cursor(vc);
 }