console: further VT100/VT52 control sequence support in TextIO.