Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I m wondering whether is possible to move the cursor to line up in the screen after printing a string to early one?

What I have tried:

I found some strings code across the web but no one is working, something like \033 [F.
Posted
Updated 9-Apr-20 9:06am

1 solution

That's going to depend on the system you are using to produce the code, and the framework in which your app runs: a WinForms C++ app will not process ANSI escape seuqences at all for example, and many console based outputs won't either.
Even if it does, the ANSI sequence for cursor up is ESC [ <numberoflines> A not #033 [ F

Start with the documentation for your framework, and work back from there.

Sorry, but we can't do that for you!
 
Share this answer
 

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