Blob Blame Raw
From 90d1b9374dd522d4552b17b8fe1b4a49de63b997 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 194/364] 	* 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.1.4