add hercules support.

This commit is contained in:
okuji committed 2001-02-27 12:59:00 +00:00
1 parent 3a598264dc
commit e85272f436
17 files changed
+530 -132

No files matched your search

+33 -1
View File
@@ -60,6 +60,7 @@ int grub_stage2 (void);
#include <shared.h>
#include <device.h>
#include <serial.h>
#include <hercules.h>
/* Simulated memory sizes. */
#define EXTENDED_MEMSIZE (3 * 1024 * 1024) /* 3MB */
@@ -642,7 +643,7 @@ console_checkkey (void)
/* sets text mode character attribute at the cursor position */
void
set_attrib (int attr)
console_set_attrib (int attr)
{
#ifdef HAVE_LIBCURSES
if (use_curses)
@@ -1134,3 +1135,34 @@ set_serial_device (const char *device)
serial_device = strdup (device);
}
/* There is no difference between console and hercules in the grub shell. */
void
herc_cls (void)
{
console_cls ();
}
int
herc_getxy (void)
{
return console_getxy ();
}
void
herc_gotoxy (int x, int y)
{
console_gotoxy (x, y);
}
void
herc_putchar (int c)
{
console_putchar (c);
}
void
herc_set_attrib (int attr)
{
console_set_attrib (attr);
}