Do not clear TUI info during playback
mpv Information
mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.1.1
FFmpeg library versions:
libavcodec 61.19.101
libavdevice 61.3.100
libavfilter 10.4.100
libavformat 61.7.100
libavutil 59.39.100
libswresample 5.3.100
libswscale 8.3.100
Other Information
- Linux version:
- Kernel Version:
- GPU Model:
- Mesa/GPU Driver Version:
- Window Manager and Version:
- Source of mpv:
- Latest known working version:
- Issue started after the following happened:
Reproduction Steps
- Play an audio in terminal UI
- Press
ifor info regarding track orF8to view a playlist - Try to read the info...
Expected Behavior
Info printed permanently and not cleared afterwards so that I can calmly read it in full, until requested again or some other player activity requires to redraw TUI.
Actual Behavior
After a short timeout the info is cleared and being a slow reader I get disappointed and required to return back to step 2.
Log File
nope
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- [x] I tested with the latest mpv version to validate that the issue is not already fixed.
- [x] I provided all required information including system and mpv version.
- [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [x] I attached the full, untruncated log file.
- [x] I attached the backtrace in the case of a crash.
Press shift+i
Okay that toggles on continious rendering of stats in TUI.
Then there's gp for a playlist...
But the question is, why to clear them up on timeout? Why not just leave text alone and printed, so that there's no continious polling of stats.
Just found another issue, if I try to select this text (stats with i and playlist opened with either F8 or gp) in terminal, it doesn't work, I mean selection resets because TUI gets continiously redrawn. So I'm unable to select anything an copy.
It's OSD and in terminal it is printed as status line. Status line is volatile, always has been. There is internal command to flush status line and don't clear it. mp.command("flush-status-line no") though note this is internal and may change in the future.
Set --term-status-msg to display terminal text permanently.
Perhaps it could be made that i flushes the stats, while I uses volatile statusline. Also flush the playlist on F8.