From a0ca6ed5d57f9305c2779e8f27a202b31f4abd2b Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 17 Oct 2024 19:51:47 +0200 Subject: [PATCH] options: rename --load-osd-console to --load-console OSD is not accurate since when the console gained support for printing to the terminal. --- DOCS/interface-changes/load-console.txt | 1 + DOCS/man/console.rst | 2 +- DOCS/man/options.rst | 2 +- options/options.c | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 DOCS/interface-changes/load-console.txt diff --git a/DOCS/interface-changes/load-console.txt b/DOCS/interface-changes/load-console.txt new file mode 100644 index 0000000000..2aa4d793b6 --- /dev/null +++ b/DOCS/interface-changes/load-console.txt @@ -0,0 +1 @@ +rename `--load-osd-console` to `--load-console` diff --git a/DOCS/man/console.rst b/DOCS/man/console.rst index 1b78d135d2..0a2aeaafd8 100644 --- a/DOCS/man/console.rst +++ b/DOCS/man/console.rst @@ -3,7 +3,7 @@ CONSOLE The console is a REPL for mpv input commands. It is displayed on the video window. It also shows log messages. It can be disabled entirely using the -``--load-osd-console=no`` option. +``--load-console=no`` option. Keybindings ----------- diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 87498a8ef4..a530d58711 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1050,7 +1050,7 @@ Program Behavior binding (default: yes). By default, the ``i`` key is used (``I`` to make the overlay permanent). -``--load-osd-console=`` +``--load-console=`` Enable the built-in script that shows a console on a key binding and lets you enter commands (default: yes). The ````` key is used to show the console by default, and ``ESC`` to hide it again. diff --git a/options/options.c b/options/options.c index 46b532a654..4954cbe36b 100644 --- a/options/options.c +++ b/options/options.c @@ -569,8 +569,9 @@ static const m_option_t mp_opts[] = { {"ytdl-raw-options", OPT_KEYVALUELIST(lua_ytdl_raw_options)}, {"load-stats-overlay", OPT_BOOL(lua_load_stats), .flags = UPDATE_BUILTIN_SCRIPTS}, - {"load-osd-console", OPT_BOOL(lua_load_console), + {"load-console", OPT_BOOL(lua_load_console), .flags = UPDATE_BUILTIN_SCRIPTS}, + {"load-osd-console", OPT_REPLACED("load-console")}, {"load-auto-profiles", OPT_CHOICE(lua_load_auto_profiles, {"no", 0}, {"yes", 1}, {"auto", -1}), .flags = UPDATE_BUILTIN_SCRIPTS},