/* videoinfo.c - command to list video modes. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2007,2008,2009,2010 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
static int
{
return 0;
return 0;
grub_printf (" ");
else
{
grub_printf ("*");
else
grub_printf (" ");
}
grub_xputs (_("Text-only "));
/* Show mask and position details for direct color modes. */
grub_xputs (_("Packed "));
grub_xputs (_("YUV "));
grub_xputs (_("Planar "));
grub_xputs (_("Hercules "));
grub_xputs (_("CGA "));
grub_xputs (_("Non-chain 4 "));
grub_xputs (_("Monochrome "));
grub_xputs (_("Unknown "));
grub_xputs ("\n");
return 0;
}
static void
{
{
return;
}
== GRUB_ERR_NONE)
else
{
}
}
static grub_err_t
{
if (argc)
{
char *ptr;
if (grub_errno)
return grub_errno;
if (*ptr != 'x')
ptr++;
if (grub_errno)
return grub_errno;
if (*ptr == 'x')
{
ptr++;
if (grub_errno)
return grub_errno;
}
}
#ifdef GRUB_MACHINE_PCBIOS
grub_dl_load ("vbe");
#endif
id = grub_video_get_driver_id ();
{
{
continue;
}
current_mode = NULL;
{
current_mode = &info;
else
/* Don't worry about errors. */
}
else
{
{
continue;
}
}
print_edid (&edid_info);
else
current_mode = NULL;
{
{
continue;
}
}
}
return GRUB_ERR_NONE;
}
#ifdef GRUB_MACHINE_PCBIOS
#endif
{
N_("List available video modes. If "
"resolution is given show only modes"
" matching it."));
#ifdef GRUB_MACHINE_PCBIOS
N_("[WxH[xD]]"),
N_("List available video modes. If "
"resolution is given show only modes"
" matching it."));
#endif
}
{
#ifdef GRUB_MACHINE_PCBIOS
#endif
}