* [PATCH] Include a text attribute reset in the clear command for ppc
@ 2014-09-25 22:35 Paulo Flabiano Smorigo
0 siblings, 0 replies; 2+ messages in thread
From: Paulo Flabiano Smorigo @ 2014-09-25 22:35 UTC (permalink / raw)
To: grub-devel
Always clear text attribute for clear command in order to avoid problems
after it boots.
* grub-core/term/terminfo.c: Add escape for text attribute reset
---
grub-core/term/terminfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
index f0d3e3d..7cb7909 100644
--- a/grub-core/term/terminfo.c
+++ b/grub-core/term/terminfo.c
@@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
/* Clear the screen. Using serial console, screen(1) only recognizes the
* ANSI escape sequence. Using video console, Apple Open Firmware
* (version 3.1.1) only recognizes the literal ^L. So use both. */
- data->cls = grub_strdup ("\f\e[2J");
+ data->cls = grub_strdup ("\f\e[2J\e[m");
data->reverse_video_on = grub_strdup ("\e[7m");
data->reverse_video_off = grub_strdup ("\e[m");
if (grub_strcmp ("ieee1275", str) == 0)
--
1.8.1.4
--
Paulo Flabiano Smorigo
IBM Linux Technology Center
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] Include a text attribute reset in the clear command for ppc
@ 2014-09-25 21:41 Paulo Flabiano Smorigo
0 siblings, 0 replies; 2+ messages in thread
From: Paulo Flabiano Smorigo @ 2014-09-25 21:41 UTC (permalink / raw)
To: grub-devel; +Cc: Paulo Flabiano Smorigo
Always clear text attribute for clear command in order to avoid problems
after it boots.
* grub-core/term/terminfo.c: Add escape for text attribute reset
---
grub-core/term/terminfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c
index f0d3e3d..7cb7909 100644
--- a/grub-core/term/terminfo.c
+++ b/grub-core/term/terminfo.c
@@ -151,7 +151,7 @@ grub_terminfo_set_current (struct grub_term_output *term,
/* Clear the screen. Using serial console, screen(1) only recognizes the
* ANSI escape sequence. Using video console, Apple Open Firmware
* (version 3.1.1) only recognizes the literal ^L. So use both. */
- data->cls = grub_strdup ("\f\e[2J");
+ data->cls = grub_strdup ("\f\e[2J\e[m");
data->reverse_video_on = grub_strdup ("\e[7m");
data->reverse_video_off = grub_strdup ("\e[m");
if (grub_strcmp ("ieee1275", str) == 0)
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-25 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-25 22:35 [PATCH] Include a text attribute reset in the clear command for ppc Paulo Flabiano Smorigo
-- strict thread matches above, loose matches on Subject: below --
2014-09-25 21:41 Paulo Flabiano Smorigo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).