Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
remember ansi.sys? colorful prompts are not supported anymore! unless with some tools like ansicon.
anyway, i need to know how can i go to the beginning of the next line. what is its ansi escape sequence?
i need my prompt to be like:
path
>
so that what i type appear from the beginning of the new line after the > sign.
is it possible? and if yes, how?

What I have tried:

i tried many escape sequences like this:
prompt $e[1;36m$p$e[e$e[1;32m$g
but it just translates to new line without carriage return
Posted
Updated 14-Nov-18 3:58am
v2

1 solution

I just typed "help prompt" at the console and it shows that $_ is interpreted as CRLF.
 
Share this answer
 
Comments
ilostmyid2 14-Nov-18 10:14am    
oh my god!
i search for it so much!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900