Is there a method for printing to the console without a trailing newline? The console object documentation doesn\'t say anything regarding that:
console
In Windows console (Linux, too), you should replace '\r' with its equivalent code \033[0G:
'\r'
\033[0G
process.stdout.write('ok\033[0G');
This uses a VT220 terminal escape sequence to send the cursor to the first column.