mpv: Make prompting for user input a function.