We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e99f9de commit 66f0f37Copy full SHA for 66f0f37
1 file changed
src/commands/webSocketTerminal.ts
@@ -18,6 +18,8 @@ const keys = {
18
ctrlE: "\x05",
19
ctrlH: "\x08",
20
del: "\x1b[3~",
21
+ home: "\x1b\x5b\x48",
22
+ end: "\x1b\x5b\x46",
23
};
24
25
const actions = {
@@ -484,6 +486,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
484
486
this._state = "eval";
485
487
return;
488
}
489
+ case keys.home:
490
case keys.ctrlA: {
491
if (this._state == "prompt" && this._cursorCol - this._margin > 0) {
492
// Move the cursor to the beginning of the line
@@ -492,6 +495,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
495
493
496
494
497
498
+ case keys.end:
499
case keys.ctrlE: {
500
if (this._state == "prompt") {
501
// Move the cursor to the end of the line
0 commit comments