Is there any character that takes cursor to previous line?

printf("H\n"); will print H and then take cursor to newline(1 step down).

output:
............
H
_
............


But is there any control character that will work in the following way:
printf("\nH(the character i am finding)");
takes cursor in newline, prints H and then takes cursor to the previous line(1 step up)


output:
............
_
H
............

Nothing simple and standard. You can go 3rd party library and mess with the screen, but the options will likely be OS dependent.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.