Extract some code from player::disp_info to functions

Fixes a display bug where the format parameter was not given.