Fix invalid graphics when TERM isn't xterm