From 32fe890cc1f9c90699fb9cd9eb5f42e597d9665a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 11 Oct 2012 02:24:13 +0200 Subject: commands: add print_text input command to print text on the terminal In theory, this could take over the role of the get_property slave command, and is more general. --- command.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index 94625352af..4afc2104e4 100644 --- a/command.c +++ b/command.c @@ -1936,6 +1936,15 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) break; } + case MP_CMD_PRINT_TEXT: { + char *txt = mp_property_expand_string(mpctx, cmd->args[0].v.s); + if (txt) { + mp_msg(MSGT_GLOBAL, MSGL_INFO, "%s\n", txt); + talloc_free(txt); + } + break; + } + case MP_CMD_SHOW_TEXT: { char *txt = mp_property_expand_string(mpctx, cmd->args[0].v.s); if (txt) { -- cgit v1.2.3