From 392a603b67c3771318d17c4191fa1f54edd31ab1 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 26 Jun 2012 23:32:00 +0200 Subject: [PATCH] * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions. --- ChangeLog | 4 ++++ grub-core/term/terminfo.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 843a24e7f..5119ea379 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-26 Vladimir Serbinenko + + * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions. + 2012-06-26 Vladimir Serbinenko * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c index d241c84fb..e35563f06 100644 --- a/grub-core/term/terminfo.c +++ b/grub-core/term/terminfo.c @@ -642,10 +642,12 @@ print_terminfo (void) grub_puts_ (N_("Current terminfo types:")); for (cur = terminfo_outputs; cur; cur = ((struct grub_terminfo_output_state *) cur->data)->next) - grub_printf ("%s: %s\t%s\n", cur->name, + grub_printf ("%s: %s\t%s\t%dx%d\n", cur->name, grub_terminfo_get_current(cur), encoding_names[(cur->flags & GRUB_TERM_CODE_TYPE_MASK) - >> GRUB_TERM_CODE_TYPE_SHIFT]); + >> GRUB_TERM_CODE_TYPE_SHIFT], + ((struct grub_terminfo_output_state *) cur->data)->width, + ((struct grub_terminfo_output_state *) cur->data)->height); return GRUB_ERR_NONE; }