+ 2

What is \r ?

3rd Jan 2017, 4:58 PM
Victor Dantas
Victor Dantas - avatar
6 odpowiedzi
+ 6
It's like \n (newline) but for different platforms (dunno details...)
3rd Jan 2017, 5:10 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
carriage return.
3rd Jan 2017, 5:03 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
\r will take you to the initial position of the current line. whereas \n will work with \r + newline.
3rd Jan 2017, 5:28 PM
Ashwaghosh Sadanshiv
Ashwaghosh Sadanshiv - avatar
+ 3
but what it does ?
3rd Jan 2017, 5:07 PM
Victor Dantas
Victor Dantas - avatar
+ 3
OK, thanks.
3rd Jan 2017, 5:12 PM
Victor Dantas
Victor Dantas - avatar
+ 3
\r is used for starting a new line on Mac. \n is used instead on linux. Both are used together (\r\n) on windows.
3rd Jan 2017, 6:34 PM
ifl
ifl - avatar