Q: The font color of the command you enter should be different from the font color of the data returned by the server. It is better to distinguish, otherwise it is difficult to tell where the data returned by the server is
A: Hello,
Thank you for contacting NetSarang Support.
The characters which you have entered are actually from the server, which the server echoed.
You need to tell the server to send colored prompt strings with code.
If you're using Bash as the shell, try the following:
export PS1="$PS1\033[34m"; trap 'printf "\e[m" > /dev/tty' DEBUG
This will change your command prompt to blue. Does this resolve your issue?
Regards,
NetSarang Support | NetSarang, Inc.
Add Comment