0

EDIT: This question already has an answer here:

https://superuser.com/questions/427820/how-to-change-only-the-prompt-color-of-the-windows-command-line/804458#804458

Please mark it as duplicate, thanks.


I know how to decorate $PS1 in Linux, but I wonder if I can change the color of prompt string in Windows cmd.exe. I know there is a $PROMPT env var to change format, but I don't see any way to change its color.

I am using cmder. So if it is possible with tweaking this, it is OK.

I just want to decorate the prompt string, without change the color all the text in the console; it is to distinguish the output with the input line. Say, I have 300 lines of output, and when I scroll back, I cannot see from where I start.

I have posted another question here, and made it in Linux. It is like this:

enter image description here

WesternGun
  • 11,303
  • 6
  • 88
  • 157
  • Possible duplicate of [How to have multiple colors in a Windows batch file?](https://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-windows-batch-file) – aschipfl Apr 06 '18 at 09:53
  • 1
    I agree that it is a duplicate, but of this question: https://superuser.com/questions/427820/how-to-change-only-the-prompt-color-of-the-windows-command-line/804458#804458 – WesternGun Apr 06 '18 at 15:55
  • Can we redirect this question to the link that I provided? Thanks. The superuser.com one. – WesternGun Apr 13 '18 at 06:34
  • You could vote to close this question as off-topic and select better suitable on SuperUser; or you could flag it and ask for migration to SuperUser... – aschipfl Apr 15 '18 at 19:41
  • For duplicate another question must be on stackoverflow.com, so I voted as off-topic and move it to superuser.com, thanks for the tip @aschipfl! I didn't know that. – WesternGun Apr 16 '18 at 13:57

0 Answers0