Значение \r в системах LinuxC++

Программы на C++. Форум разработчиков
Гость
Значение \r в системах Linux

Сообщение Гость »


Я смотрю на какой-то код, специфичный для Linux, который выводит что-то вроде:

Код: Выделить всё

\r\x1b[J>
to the std io.

I understand that represents deleting the contents of the screen from the current line down, but what does \r do here?

I'm also seeing the following:

Код: Выделить всё

>user_input\n\r>
where user_input is the text entered by the user. But what is the purpose of the \r here?


Источник: https://stackoverflow.com/questions/149 ... ux-systems

Вернуться в «C++»