Lots of fixes to make the graphical menu actually work.
[syslinux.git] / com32 / modules / vesamenu.c
blob8d386d004df5b4efeba0d32ef732be81e96f45f9
1 /* ----------------------------------------------------------------------- *
3 * Copyright 2004-2006 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
14 * vesamenu.c
16 * Simple menu system which displays a list and allows the user to select
17 * a command line and/or edit it.
19 * VESA graphics version.
22 #include <stdio.h>
23 #include <console.h>
24 #include "menu.h"
26 static void __attribute__((destructor)) console_cleanup(void)
28 /* For the serial console, be nice and clean up */
29 fputs("\033[0m\033[20l", stdout);
32 int vesacon_load_background(const char *);
34 int main(int argc, char *argv[])
36 openconsole(&dev_rawcon_r, &dev_vesaserial_w);
37 fputs("\033[0m\033[20h", stdout);
39 draw_background = vesacon_load_background;
41 return menu_main(argc, argv);