readline: make ctrl + L
clear the screen
This commit is contained in:
parent
41fc46e52f
commit
18574bfaf1
@ -663,6 +663,12 @@ Interface.prototype._ttyWrite = function(s, key) {
|
|||||||
this._moveCursor(+1);
|
this._moveCursor(+1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'l': // clear the whole screen
|
||||||
|
exports.cursorTo(this.output, 0, 0);
|
||||||
|
exports.clearScreenDown(this.output);
|
||||||
|
this._refreshLine();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'n': // next history item
|
case 'n': // next history item
|
||||||
this._historyNext();
|
this._historyNext();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user