printf("Hello%cWorld\n", '\r');
Outputs:
World
Because '\r' moves the cursor to the beginning of the line
Can I trust that all terminals have this behavior?
lib curses will tell you the capabilities of your terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With