aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt.c')
-rw-r--r--com32/hdt/hdt.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/com32/hdt/hdt.c b/com32/hdt/hdt.c
index 30cb0629..6daf3ae4 100644
--- a/com32/hdt/hdt.c
+++ b/com32/hdt/hdt.c
@@ -35,6 +35,7 @@
#include <stdio.h>
#include <console.h>
#include <consoles.h>
+#include <syslinux/vesacon.h>
#include "hdt.h"
#include "hdt-cli.h"
#include "hdt-menu.h"
@@ -42,6 +43,9 @@
int display_line_nb = 0;
bool disable_more_printf = false;
+/* Defines the number of lines in the console
+ * Default is 20 for a std console */
+int max_console_lines=20;
int main(const int argc, const char *argv[])
{
@@ -52,23 +56,25 @@ int main(const int argc, const char *argv[])
snprintf(version_string, sizeof version_string, "%s %s (%s)",
PRODUCT_NAME,VERSION, CODENAME);
+ /* Detecting parameters */
+ detect_parameters(argc, argv, &hardware);
+
/* Opening the Syslinux console */
- console_ansi_raw();
+ if (vesamode) openconsole(&dev_rawcon_r, &dev_vesaserial_w);
+ else console_ansi_raw();
/* Cleaning structures */
init_hardware(&hardware);
/* Detecting Syslinux version */
detect_syslinux(&hardware);
-
- /* Detecting parameters */
- detect_parameters(argc, argv, &hardware);
-
+
/* Clear the screen and reset position of the cursor */
clear_screen();
printf("\033[1;1H");
-
+
printf("%s\n", version_string);
+
if ((arg = find_argument(argv + 1, "nomenu")) || (find_argument(argv+1,"auto")))
start_cli_mode(&hardware);
else {