aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/menu.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-10 22:26:06 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-10 22:26:06 -0800
commit9fd7fad275a23cdfad680f56d1199acab675ef2a (patch)
treef1f70293c6f78c8e4a433cdbe95a3b4f942a4bb6 /com32/menu/menu.c
parent55bf6f17d1e646580342bda77d15878e293faad7 (diff)
downloadsyslinux.git-9fd7fad275a23cdfad680f56d1199acab675ef2a.tar.gz
syslinux.git-9fd7fad275a23cdfad680f56d1199acab675ef2a.tar.xz
syslinux.git-9fd7fad275a23cdfad680f56d1199acab675ef2a.zip
Simple menu system: move to dedicated subdirectory
Move the simple menu system into its own subdirectory, to make it more obvious which source files are part of it.
Diffstat (limited to 'com32/menu/menu.c')
-rw-r--r--com32/menu/menu.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/com32/menu/menu.c b/com32/menu/menu.c
new file mode 100644
index 00000000..acc19f59
--- /dev/null
+++ b/com32/menu/menu.c
@@ -0,0 +1,44 @@
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ * Boston MA 02111-1307, USA; either version 2 of the License, or
+ * (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * menu.c
+ *
+ * Simple menu system which displays a list and allows the user to select
+ * a command line and/or edit it.
+ */
+
+#include <consoles.h>
+#include "menu.h"
+
+void console_prepare(void)
+{
+ /* Nothing special to do */
+}
+
+void console_cleanup(void)
+{
+ /* Nothing special to do */
+}
+
+int draw_background(const char *arg)
+{
+ /* Nothing to do... */
+ (void)arg;
+}
+
+int main(int argc, char *argv[])
+{
+ console_ansi_raw();
+
+ return menu_main(argc, argv);
+}