diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-08-28 23:39:34 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-21 03:08:52 +0100 |
commit | 777f69bee8aceadcd319edf046535e177ef43d48 (patch) | |
tree | 83582a96679f1774bc32b0c002e7354a38e50378 /DOCS/man | |
parent | 344ac5501de35cd90a2a79e7baf599209d0e7572 (diff) | |
download | mpv-777f69bee8aceadcd319edf046535e177ef43d48.tar.bz2 mpv-777f69bee8aceadcd319edf046535e177ef43d48.tar.xz |
stats.lua: truncate long lines for the terminal
The terminal is assumed to be 80x24 in size, the new options
`term_width_limit` and `term_height_limit` can be used to overwrite
that.
Lines longer then the terminal width cause problems with scrolling
pages and need to be shortened.
The algorithm used for shortening can deal with tabs and escape
sequences, has rudimentary support for UTF-8 and runs in O(n).
avih helped in the creation of the term_ellipsis() function and split()
is also from him.
Diffstat (limited to 'DOCS/man')
-rw-r--r-- | DOCS/man/stats.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/DOCS/man/stats.rst b/DOCS/man/stats.rst index 88238bcf93..7ddf851567 100644 --- a/DOCS/man/stats.rst +++ b/DOCS/man/stats.rst @@ -85,6 +85,18 @@ Configurable Options respective duration. This can result in overlapping text when multiple scripts decide to print text at the same time. +``term_width_limit`` + Default: -1 + + Sets the terminal width. + A value of 0 means the width is infinite, -1 means it's automatic. + +``term_height_limit`` + Default: -1 + + Sets the terminal height. + A value of 0 means the height is infinite, -1 means it's automatic. + ``plot_perfdata`` Default: yes |