/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2007, 2008, 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+");
#ifdef __mips__
#else
#endif
static void
screen_write_char (int x, int y, short c)
{
VGA_TEXT_SCREEN[y * COLS + x] = c;
}
static short
screen_read_char (int x, int y)
{
return VGA_TEXT_SCREEN[y * COLS + x];
}
static void
update_cursor (void)
{
}
static void
inc_y (void)
{
grub_curr_x = 0;
grub_curr_y++;
else
{
int x, y;
for (y = 0; y < ROWS - 1; y++)
for (x = 0; x < COLS; x++)
for (x = 0; x < COLS; x++)
}
}
static void
inc_x (void)
{
inc_y ();
else
grub_curr_x++;
}
static void
const struct grub_unicode_glyph *c)
{
switch (c->base)
{
case '\b':
if (grub_curr_x != 0)
break;
case '\n':
inc_y ();
break;
case '\r':
grub_curr_x = 0;
break;
default:
inc_x ();
}
update_cursor ();
}
static grub_uint16_t
{
}
static void
grub_uint8_t x, grub_uint8_t y)
{
grub_curr_x = x;
grub_curr_y = y;
update_cursor ();
}
static void
{
int i;
grub_vga_text_gotoxy (term, 0, 0);
}
static void
int on)
{
if (on)
else
}
static grub_err_t
{
return 0;
}
{
.name = "vga_text",
.cls = grub_vga_text_cls,
};
{
}
{
}