mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
fix home/end on GNU/Linux
This commit is contained in:
1 parent
8d2e79451e
commit
699fdfaa43
1 file changed
+2
-2
+2
-2
@@ -361,10 +361,10 @@ Interface.prototype._ttyWrite = function (b) {
|
||||
this.cursor++;
|
||||
this.output.write('\x1b[0C');
|
||||
}
|
||||
} else if (b[1] === 91 && b[2] === 72) { // home
|
||||
} else if ((b[1] === 91 || b[1] === 79) && b[2] === 72) { // home
|
||||
this.cursor = 0;
|
||||
this._refreshLine();
|
||||
} else if (b[1] === 91 && b[2] === 70) { // end
|
||||
} else if ((b[1] === 91 || b[1] === 79) && b[2] === 70) { // end
|
||||
this.cursor = this.line.length;
|
||||
this._refreshLine();
|
||||
} else if (b[1] === 91 && b[2] === 65) { // up arrow
|
||||
|
||||
Reference in new issue
Block a user