summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-15 16:14:37 +0100
committerwm4 <wm4@nowhere>2014-01-15 16:14:37 +0100
commit45641378a2df4d5fe227ad7ba575b01f787ad8e8 (patch)
tree5d795556042b8f71365ffcda41c3603cd0425c68 /options/options.c
parentca8937d7d269c0ef8881d2ac7a227fdb990a5753 (diff)
downloadmpv-45641378a2df4d5fe227ad7ba575b01f787ad8e8.tar.bz2
mpv-45641378a2df4d5fe227ad7ba575b01f787ad8e8.tar.xz
player: add --term-osd-bar, which shows a status bar on the terminal
Feature request from github issue #451. Disabled by default, will probably stay this way.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index dbc06bdf7f..cff2eff810 100644
--- a/options/options.c
+++ b/options/options.c
@@ -597,6 +597,9 @@ const m_option_t mp_opts[] = {
{"auto", 2},
{"no", 0})),
+ OPT_FLAG("term-osd-bar", term_osd_bar, 0),
+ OPT_STRING("term-osd-bar-chars", term_osd_bar_chars, 0),
+
OPT_STRING("playing-msg", playing_msg, M_OPT_PARSE_ESCAPES),
OPT_STRING("status-msg", status_msg, M_OPT_PARSE_ESCAPES),
OPT_STRING("osd-status-msg", osd_status_msg, M_OPT_PARSE_ESCAPES),
@@ -702,6 +705,7 @@ const struct MPOpts mp_default_opts = {
.user_pts_assoc_mode = 1,
.initial_audio_sync = 1,
.term_osd = 2,
+ .term_osd_bar_chars = "[-+-]",
.consolecontrols = 1,
.play_frames = -1,
.keep_open = 0,