diff options
author | wm4 <wm4@nowhere> | 2012-10-11 02:24:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:13:43 +0200 |
commit | 32fe890cc1f9c90699fb9cd9eb5f42e597d9665a (patch) | |
tree | 4e6ee9cc47cb8d42f41579809db10d520208561f /command.c | |
parent | c9df2c8bd83b31375a79ab2bc4f854a53ff019c1 (diff) | |
download | mpv-32fe890cc1f9c90699fb9cd9eb5f42e597d9665a.tar.bz2 mpv-32fe890cc1f9c90699fb9cd9eb5f42e597d9665a.tar.xz |
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.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) { |