mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Do not clear TUI info during playback

Open arbitrary-dev opened this issue 6 months ago • 6 comments

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

  1. Play an audio in terminal UI
  2. Press i for info regarding track or F8 to view a playlist
  3. 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.

arbitrary-dev avatar May 15 '25 18:05 arbitrary-dev

Press shift+i

kasper93 avatar May 15 '25 18:05 kasper93

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.

arbitrary-dev avatar May 15 '25 20:05 arbitrary-dev

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.

arbitrary-dev avatar May 15 '25 20:05 arbitrary-dev

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.

kasper93 avatar May 15 '25 21:05 kasper93

Set --term-status-msg to display terminal text permanently.

guidocella avatar May 16 '25 09:05 guidocella

Perhaps it could be made that i flushes the stats, while I uses volatile statusline. Also flush the playlist on F8.

arbitrary-dev avatar May 16 '25 11:05 arbitrary-dev