My term in emacs appear:
~$ echo $PS1 \[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;33m\]\w\[\033[00m\]\[\033[0;35m\]$\[\033[0m\]
debian-9.5.0 and GNU Emacs 25.1.1
I tried various solutions given in stackexchange by adding additional lines to
But nothing worked out. This issue is there in shell also; but not in eshell.