summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-22 14:54:57 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commitd232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e (patch)
tree21fcbd89ad3d1c4ecf5e0e38795b232f49b86769 /etc
parent84af1733800fd78af61b2ebf5be10673192b68fe (diff)
downloadmpv-d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e.tar.bz2
mpv-d232012287fe2e6e829ce9e4c20e0d9f9dc4ed5e.tar.xz
input: handle escapes always in command parser
Previously, both the command parser and property expansion (m_properties_expand_string) handled escapes with '\'. Move all escape handling into the command parser, and remove it from the property code. This removes the need to escape strings twice for commands that use property expansion. The command parser is practically rewritten: it uses m_option for the actual parsing, and reduces hackish C-string handling.
Diffstat (limited to 'etc')
-rw-r--r--etc/input.conf8
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/input.conf b/etc/input.conf
index a32495ab3a..257a4538c9 100644
--- a/etc/input.conf
+++ b/etc/input.conf
@@ -11,15 +11,13 @@
#
# Note that merely removing default key bindings from this file won't remove
# the default bindings mplayer was compiled with, unless
-# --input=nodefault-bindings
+# --input=no-default-bindings
# is specified.
#
# Lines starting with # are comments. Use SHARP to assign the # key.
#
-# Some characters need to be escaped. In particular, if you want to display
-# a '\' character as part of an osd_show_property_text OSD message, you have to
-# escape 2 times:
-# key osd_show_property_text "This is a single backslash: \\\\!"
+# Strings need to be quoted and escaped:
+# KEY show_text "This is a single backslash: \\ and a quote: \" !"
#
# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
# modifiers Shift, Ctrl, Alt and Meta, but note that currently reading