terminal: pretty print modules for --msgmodule

Refs https://github.com/mpv-player/mpv/issues/705