available as an example tool from my fork of pexpect in github, https://github.com/jquast/pexpect-ud

This fork of pexpect supports different output encodings. This one uses a cp437 translation table so old IBM DOS Art can be viewed on modern unix terminals.