summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 9 insertions, 0 deletions
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) {