projects/linux·commit 9477e260

[PATCH] fbcon: Fix screen artifacts when moving cursor

9477e260 · Antonino A. Daplas <[email protected]> · 2006-02-01 03:06:52 -08:00

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.

Signed-off-by: Antonino Daplas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
9477e260b7ca3b6076b91eae15739383c508f3e2
Parents
fa385bef

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/char/vt.cmodified+1−0View file

drivers/char/vt.c

View file
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index f1d9cb7..0900d1d 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -3213,6 +3213,7 @@ void getconsxy(struct vc_data *vc, unsigned char *p)
void putconsxy(struct vc_data *vc, unsigned char *p)
{
+ hide_cursor(vc);
gotoxy(vc, p[0], p[1]);
set_cursor(vc);
}