:: commit 7f5bfda6f35019c30285ff4ad552658c26564f1f

mintsuki <mintsuki@protonmail.com> — 2022-03-02 13:32

parents: 79e4a2c4e7

docs: Document serial support better

diff --git a/CONFIG.md b/CONFIG.md
index 2be1ae5e..771ec95c 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -59,7 +59,7 @@ Some keys take *URIs* as values; these are described in the next section.
 *Globally assignable* keys are:
 * `TIMEOUT` - Specifies the timeout in seconds before the first *entry* is automatically booted. If set to `no`, disable automatic boot. If set to `0`, boots default entry instantly (see `DEFAULT_ENTRY` key).
 * `QUIET` - If set to `yes`, enable quiet mode, where all screen output except panics and important warnings is suppressed. If `TIMEOUT` is not 0, the `TIMEOUT` still occurs, and pressing any key during the timeout will reveal the menu and disable quiet mode.
-* `SERIAL` - Enable serial I/O for the bootloader.
+* `SERIAL` - If set to `yes`, enable serial I/O for the bootloader.
 * `DEFAULT_ENTRY` - 1-based entry index of the entry which will be automatically selected at startup. If unspecified, it is `1`.
 * `GRAPHICS` - If set to `yes`, use a graphical framebuffer for the boot menu, else use text mode. Ignored with Limine UEFI, forced to `yes`.
 * `MENU_RESOLUTION` - Specify screen resolution to be used by the Limine menu in the form `<width>x<height>`. This will *only* affect the menu, not any booted OS. If not specified, Limine will pick a resolution automatically. If the resolution is not available, Limine will pick another one automatically. Ignored if `GRAPHICS` is not `yes`.
diff --git a/common/menu.c b/common/menu.c
index 77900393..eea44529 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -87,6 +87,7 @@ static const char *VALID_KEYS[] = {
     "QUIET",
     "DEFAULT_ENTRY",
     "GRAPHICS",
+    "SERIAL",
     "MENU_RESOLUTION",
     "MENU_BRANDING",
     "MENU_BRANDING_COLOUR",
tab: 248 wrap: offon