From 736d2b820d968915516d1662b84f9995d53895a3 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 7 Jul 2021 00:40:28 +0200 Subject: Started graphical selection interface --- src/loader/sel.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/loader/sel.c (limited to 'src/loader/sel.c') diff --git a/src/loader/sel.c b/src/loader/sel.c new file mode 100644 index 0000000..c4303a4 --- /dev/null +++ b/src/loader/sel.c @@ -0,0 +1,20 @@ +// MIT License, Copyright (c) 2021 Marvin Borner +// Selection interface + +#include +#include +#include +#include + +static u8 sel_entry(struct cfg_entry *entry) +{ + vga_log("> '%s' (%s)\n", entry->name, entry->path); + return 0; +} + +void sel_draw(void) +{ + vga_clear(); + + cfg_foreach(&sel_entry); +} -- cgit v1.2.3