lib/gterm: Drop term_ prefix from term_{wallpaper,wallpaper_style,backdrop}
diff --git a/CONFIG.md b/CONFIG.md
index 0757dee4..27f1575f 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -65,6 +65,9 @@ Miscellaneous:
* `default_entry` - 1-based entry index of the entry which will be automatically selected at startup. If unspecified, it is `1`.
* `remember_last_entry` - If set to `yes`, remember last booted entry. (UEFI only)
* `graphics` - If set to `no`, force CGA text mode for the boot menu, else use a video mode. Ignored with Limine UEFI.
+* `wallpaper` - Path where to find the file to use as wallpaper. BMP, PNG, and JPEG formats are supported.
+* `wallpaper_style` - The style which will be used to display the wallpaper image: `tiled`, `centered`, or `stretched`. Default is `stretched`.
+* `backdrop` - When the background style is `centered`, this specifies the colour of the backdrop for parts of the screen not covered by the background image, in RRGGBB format.
* `verbose` - If set to `yes`, print additional information during boot. Defaults to not verbose.
* `randomise_memory` - If set to `yes`, randomise the contents of RAM at bootup in order to find bugs related to non zeroed memory or for security reasons. This option will slow down boot time significantly. For the BIOS port of Limine, this will only randomise memory below 4GiB.
* `randomize_memory` - Alias of `randomise_memory`.
@@ -94,9 +97,6 @@ These are ignored if using text mode.
* `term_foreground_bright` - Terminal text foreground bright colour (RRGGBB).
* `term_margin` - Set the amount of margin around the terminal.
* `term_margin_gradient` - Set the thickness in pixel for the gradient around the terminal.
-* `term_wallpaper` - Path where to find the file to use as wallpaper. BMP, PNG, and JPEG formats are supported.
-* `term_wallpaper_style` - The style which will be used to display the wallpaper image: `tiled`, `centered`, or `stretched`. Default is `stretched`.
-* `term_backdrop` - When the background style is `centered`, this specifies the colour of the backdrop for parts of the screen not covered by the background image, in RRGGBB format.
Editor control options:
diff --git a/common/lib/gterm.c b/common/lib/gterm.c
index 7bc93a84..1e152248 100644
--- a/common/lib/gterm.c
+++ b/common/lib/gterm.c
@@ -588,7 +588,7 @@ bool gterm_init(struct fb_info **_fbs, size_t *_fbs_count,
}
background = NULL;
- char *background_path = config_get_value(config, 0, "TERM_WALLPAPER");
+ char *background_path = config_get_value(config, 0, "WALLPAPER");
if (background_path != NULL) {
struct file_handle *bg_file;
if ((bg_file = uri_open(background_path)) != NULL) {
@@ -690,9 +690,9 @@ no_load_font:;
}
if (background != NULL) {
- char *background_layout = config_get_value(config, 0, "TERM_WALLPAPER_STYLE");
+ char *background_layout = config_get_value(config, 0, "WALLPAPER_STYLE");
if (background_layout != NULL && strcmp(background_layout, "centered") == 0) {
- char *background_colour = config_get_value(config, 0, "TERM_BACKDROP");
+ char *background_colour = config_get_value(config, 0, "BACKDROP");
if (background_colour == NULL)
background_colour = "0";
uint32_t bg_col = strtoui(background_colour, NULL, 16);
diff --git a/test/limine.conf b/test/limine.conf
index bce31037..ffa819ad 100644
--- a/test/limine.conf
+++ b/test/limine.conf
@@ -6,9 +6,8 @@ default_entry: 1
timeout: 3
verbose: yes
-# Terminal related settings
-term_wallpaper: ${WALLPAPER_PATH}
-term_backdrop: 008080
+wallpaper: ${WALLPAPER_PATH}
+backdrop: 008080
/Limine Test
comment: Test of the Limine boot protocol. ${ARCH}
