readline.clearLine(stream, dir)


readline.clearLine() 方法在由 dir 标识的指定方向上清除给定的 TTY 流的当前行。

The readline.clearLine() method clears current line of given TTY stream in a specified direction identified by dir.