Support terminals without CHA support

Some terminals, for example OpenBSD without X, do not support the Cursor
Character Absolute (CHA) opcode. Detect support and use CR/CUF instead
on those terminals.