有以下功能可用
process.stdout:
var i = 0; // dots countersetInterval(function() { process.stdout.clearLine(); // clear current text process.stdout.cursorTo(0); // move cursor to beginning of line i = (i + 1) % 4; var dots = new Array(i + 1).join("."); process.stdout.write("Waiting" + dots); // write text}, 300);可以提供参数
clearLine(direction, callback)
*2015年12月13日 *更新
:尽管以上代码有效,但不再作为的一部分进行记录
process.stdin。它已移至
readline



