add prompt-length escape sequences to PS1