diff options
author | wm4 <wm4@nowhere> | 2013-02-16 23:24:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-20 23:45:56 +0100 |
commit | 0bad744d68a0ac066c5e648c8fd1673d1459478f (patch) | |
tree | 2470d210837710b7a77efe766f2bc13ded62d0c1 /core/m_option.h | |
parent | 68daee220c305220bfeb8f4f473b981b2d34af70 (diff) | |
download | mpv-0bad744d68a0ac066c5e648c8fd1673d1459478f.tar.bz2 mpv-0bad744d68a0ac066c5e648c8fd1673d1459478f.tar.xz |
options: parse C-style escapes for some options
Being able to insert newline characters ("\n") is useful for
--osd-status-msg, and possibly also for anything that prints to the
terminal. Espcially --term-osd-esc looks relatively useless without
being able to specify escapes.
Maybe parsing escapes should happen during command line / config parsing
instead (for all options).
Diffstat (limited to 'core/m_option.h')
-rw-r--r-- | core/m_option.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/m_option.h b/core/m_option.h index 9ae8797a44..bbf1efaec7 100644 --- a/core/m_option.h +++ b/core/m_option.h @@ -366,6 +366,9 @@ struct m_option { // See M_OPT_TYPE_OPTIONAL_PARAM. #define M_OPT_OPTIONAL_PARAM (1 << 10) +// Parse C-style escapes like "\n" (for CONF_TYPE_STRING only) +#define M_OPT_PARSE_ESCAPES (1 << 11) + // These are kept for compatibility with older code. #define CONF_MIN M_OPT_MIN #define CONF_MAX M_OPT_MAX |