Refactored rendering in PyGameTerm