Blame SOURCES/0248-grub-core-term-i386-pc-console.c-grub_console_getwh-.patch

f96e0b
From 7d0fb871481447b7f8ac06d7bc23ee6a5204ff76 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Wed, 3 Apr 2013 15:21:51 +0200
f96e0b
Subject: [PATCH 248/482] 	* grub-core/term/i386/pc/console.c
f96e0b
 (grub_console_getwh): Decrease 	reported width by one to compensate
f96e0b
 for curesor algorithm problem.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                        | 5 +++++
f96e0b
 grub-core/term/i386/pc/console.c | 3 ++-
f96e0b
 2 files changed, 7 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 0592cac..b0c57bb 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
f96e0b
+	reported width by one to compensate for curesor algorithm problem.
f96e0b
+
f96e0b
+2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	Fix screen corruption in menu entry editor and simplify the code
f96e0b
 	flow while on it.
f96e0b
 
f96e0b
diff --git a/grub-core/term/i386/pc/console.c b/grub-core/term/i386/pc/console.c
f96e0b
index 2aa1943..ee6650b 100644
f96e0b
--- a/grub-core/term/i386/pc/console.c
f96e0b
+++ b/grub-core/term/i386/pc/console.c
f96e0b
@@ -255,7 +255,8 @@ grub_console_getkeystatus (struct grub_term_input *term __attribute__ ((unused))
f96e0b
 static grub_uint16_t
f96e0b
 grub_console_getwh (struct grub_term_output *term __attribute__ ((unused)))
f96e0b
 {
f96e0b
-  return (80 << 8) | 25;
f96e0b
+  /* Due to current cursor moving algorithm we lost the last column.  */
f96e0b
+  return (79 << 8) | 25;
f96e0b
 }
f96e0b
 
f96e0b
 static void
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b