L
L
link_vrb2022-01-23 16:06:35
Programming
link_vrb, 2022-01-23 16:06:35

How to move the caret a few lines back, and delete everything in front?

There's \r , which moves the carriage return to the beginning of the line, and I need something to make the carriage return a few lines back and remove everything in front.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
none7, 2022-01-23
@link_vrb

There is no universal solution. Windows has its own API for working with the console in terminal emulators, there are standards for using ECMA-48 control characters. In any case, it all comes down to padding printed characters with spaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question