grub2/0195-grub-core-term-terminfo.c-grub_terminfo_cls-Issue-an.patch
2013-06-07 14:03:56 -04:00

42 lines
1.2 KiB
Diff

From 0cbe55531afbe9cb9a8e63d27452a6261b7736c2 Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Tue, 5 Mar 2013 20:00:51 +0100
Subject: [PATCH 195/471] * grub-core/term/terminfo.c
(grub_terminfo_cls): Issue an explicit gotoxy to 0,0.
---
ChangeLog | 5 +++++
grub-core/term/terminfo.c | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cacba37..f1ab52a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
+ gotoxy to 0,0.
+
2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
Remove all trampoline support. Add -Wtrampolines when
diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
index eb0ef00..a46bb4b 100644
--- a/grub-core/term/terminfo.c
+++ b/grub-core/term/terminfo.c
@@ -272,8 +272,7 @@ grub_terminfo_cls (struct grub_term_output *term)
= (struct grub_terminfo_output_state *) term->data;
putstr (term, grub_terminfo_tparm (data->cls));
-
- data->xpos = data->ypos = 0;
+ grub_terminfo_gotoxy (term, 0, 0);
}
void
--
1.8.2.1