1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-14 19:11:53 +00:00
mpv/DOCS
Avi Halachmi (:avih) 2335ee5514 stats.lua: page 4 (keys): support help-like terminal printout
While --input-test is useful, and so is page 4 of stats, until now
there was no way to simply print the list in a help-like fashion.

This commit adds such printout, invoked by the script opt
stats-bindlist=yes, which uses the existing page 4 code. This prints
the list on startup and quits immediately - like any help page.

It's awkward to invoke compared to other help pages, and it does
require the stats page to be enabled (it is by default), however
it is a script-generated output, and currently there's no other
method to print a help page generated by a script.

The printout itself is performed using lua's io.write. While reliable,
it's not the standard way for mpv to print to the terminal.

Other possible printout methods are mp.msg.info - which also prints
"[stats]" prefix on each line (ugly), or forcing term-osd and setting
an osd-message which mpv will then print at the terminal - however
that's printed to stderr, and could also be subject to timing concerns
since we quit right afterwards.

In the future we can consider changing/integrating the invocation so
that mpv itself could print a help page generated by a script, thus
solving both the awkward invocation and printout-method issues.
2021-07-19 22:06:50 +03:00
..
man stats.lua: page 4 (keys): support help-like terminal printout 2021-07-19 22:06:50 +03:00
client-api-changes.rst client API: inactivate the opengl_cb API 2020-09-03 14:52:11 +02:00
compatibility.rst
compile-windows.md Update compile-windows.md 2020-08-28 23:34:29 -04:00
contribute.md {ci,docs,README}: update IRC references to new network 2021-06-08 16:45:22 +02:00
edl-mpv.rst edl: add a way to add tags 2021-05-11 22:18:40 +02:00
encoding.rst
interface-changes.rst vo_gpu: replace --icc-contrast by --icc-force-contrast 2021-05-26 17:35:29 +02:00
mplayer-changes.rst
release-policy.md
tech-overview.txt
waf-buildsystem.rst