Added escaped square brackets around non printing parts - http://unix.stackexchange.com/questions/35373/home-key-acting-strange-in-bash-tty-and-x-on-long-input-strings