I'm having difficulty with specifying PS1
on Ubuntu 18.04.5. I use the following code in my .bashrc
file and the result looks exactly as it should.
export PS1=$'\e[38;5;046m \u00AB\D{%y-%m-%d}\u00BB-[\D{%H:%M:%S}]-{\W}\e[1m\e[38;5;196m>\e[38;5;226m>\e[38;5;046m>\e[38;5;255m\e[0m '
The problem is that my cursor is at the beginning of the command line and not after the >>>. Curiously, if I set my terminal to full screen, the cursor appears where it should. Is there an obvious error in my PS1
definition?