1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00
mpv/player
Christoph Heinrich 777f69bee8 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.
2024-03-21 03:08:52 +01:00
..
javascript js: complex key-binding: send also key_text 2024-02-09 16:54:57 +02:00
lua stats.lua: truncate long lines for the terminal 2024-03-21 03:08:52 +01:00
audio.c player/video: subtract frame_time from delay when ao_chain starts audio 2024-03-03 16:24:28 -06:00
client.c various: fix -Wold-style-declaration warning 2024-03-19 08:58:18 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c demux: add a format-name property 2024-03-17 14:59:40 +00:00
command.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00
configfiles.c player: fix watch later config comments when ignoring path 2024-02-24 05:26:48 +00:00
core.h Revert "player: reset av state on speed changes" 2024-03-03 16:27:59 -06:00
external_files.c command: restore lang after track reload 2024-01-20 17:26:45 +00:00
external_files.h command: restore lang after track reload 2024-01-20 17:26:45 +00:00
javascript.c scripting: rename backend names for concise naming 2023-10-27 23:18:56 +00:00
loadfile.c player/loadfile: rewrite sub autoselection logic 2024-02-24 05:26:37 +00:00
lua.c scripting: add mp.input 2024-01-13 02:53:08 +00:00
main.c player/main: move terminal_uninit to the end 2024-03-19 19:58:09 +01:00
meson.build meson: generate .com in the same place as the .exe if possible 2023-11-27 18:42:19 +00:00
misc.c player: change insert_next to insert_at 2024-02-26 02:03:21 +00:00
osd.c player: remove --term-remaining-playtime option 2024-01-20 23:24:48 +00:00
playloop.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00
screenshot.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
sub.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00
video.c mp_image: add mp_image_params_static_equal for finer comparision 2024-03-09 05:58:52 +00:00