codec
03/22/2020, 7:53 PMJavaExec
doesn’t honor carriage returns ("\r")
in Java print statements?Gunslingor
03/22/2020, 8:07 PMcodec
03/22/2020, 8:25 PM@Gunslingor I am on a Mac. Running a pre-defined Gradle task. No, I meant what I said when I wanted the carriage return. When you append a "\r" to a print() statement, it effectively starts at the beginning of the line again, which is the desired result.
Gunslingor
03/22/2020, 8:28 PMGunslingor
03/22/2020, 8:29 PMGunslingor
03/22/2020, 8:29 PMcodec
03/22/2020, 8:31 PMcodec
03/22/2020, 8:31 PM* Note: the parser does <strong>not</strong> support using backslash to escape quotes. If this is needed,
* use the other quote delimiter around it.
* For example, to pass the argument {@code 'singly quoted'}, use {@code "'singly quoted'"}.
* </p>
*
codec
03/22/2020, 8:32 PMGunslingor
03/22/2020, 8:32 PMcodec
03/22/2020, 8:33 PMprint("${cursor}/${total_rows}\r")
but with their parser you have to surround it with the single-quotes…
print("${cursor}/${total_rows}'\r'")
codec
03/22/2020, 8:34 PMGunslingor
03/22/2020, 8:34 PMcodec
03/22/2020, 8:37 PM