From b3b2cc44fa783c1575b3e229c79f2977f75a57c1 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sun, 8 Dec 2019 03:16:10 +1100 Subject: console.lua: add this script Merged from mpv-repl git repo commit 5ea2bf64f9c239f0326b02. Some changes were made on top of it: - Tabs were converted to 4 spaces indentation (plus some manual indentation fixes in some places). - All user-visible mentions of "repl" were renamed to "console". - The README was converted to a manpage (with heavy changes, some additions taken from stats.rst; rossy converted the key bindings table to RST). - The method to change the default key binding was changed. - Change minor detail about "font" default value setting (not a functional change). - Integrate into the player as builtin script, including an option to prevent loading it. Above changes and commit message done by wm4. Signed-off-by: wm4 --- player/scripting.c | 1 + 1 file changed, 1 insertion(+) (limited to 'player/scripting.c') diff --git a/player/scripting.c b/player/scripting.c index bcb5ea65ef..c37f3af9ce 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -208,6 +208,7 @@ void mp_load_builtin_scripts(struct MPContext *mpctx) load_builtin_script(mpctx, mpctx->opts->lua_load_osc, "@osc.lua"); load_builtin_script(mpctx, mpctx->opts->lua_load_ytdl, "@ytdl_hook.lua"); load_builtin_script(mpctx, mpctx->opts->lua_load_stats, "@stats.lua"); + load_builtin_script(mpctx, mpctx->opts->lua_load_console, "@console.lua"); } void mp_load_scripts(struct MPContext *mpctx) -- cgit v1.2.3