Emit ANSI escape sequences directly instead of calling tput

Possibly fixes #22? /cc @mislav @dbrock