File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const keys = {
18
18
ctrlE : "\x05" ,
19
19
ctrlH : "\x08" ,
20
20
del : "\x1b[3~" ,
21
+ home : "\x1b\x5b\x48" ,
22
+ end : "\x1b\x5b\x46" ,
21
23
} ;
22
24
23
25
const actions = {
@@ -484,6 +486,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
484
486
this . _state = "eval" ;
485
487
return ;
486
488
}
489
+ case keys . home :
487
490
case keys . ctrlA : {
488
491
if ( this . _state == "prompt" && this . _cursorCol - this . _margin > 0 ) {
489
492
// Move the cursor to the beginning of the line
@@ -492,6 +495,7 @@ class WebSocketTerminal implements vscode.Pseudoterminal {
492
495
}
493
496
return ;
494
497
}
498
+ case keys . end :
495
499
case keys . ctrlE : {
496
500
if ( this . _state == "prompt" ) {
497
501
// Move the cursor to the end of the line
You can’t perform that action at this time.
0 commit comments