This pulls in the rendering code from the escape sequence parser module and expands its tests. Added my compiled xterm terminfo file to make sure that the test environment is reproducible.