File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export const SetupMyTerminal = (props: {
90
90
event : { key : string ; domEvent : KeyboardEvent } ,
91
91
terminal ,
92
92
) => {
93
- console . log ( event ) ;
93
+ // console.log(event);
94
94
95
95
if ( event . key === "\r" ) {
96
96
terminal . write ( "\r\n" ) ;
@@ -114,7 +114,7 @@ export const SetupMyTerminal = (props: {
114
114
} ;
115
115
const onData = ( data : string ) => {
116
116
// if Backspace, ArrowUp: do nothing
117
- if ( data === "\b " || data === "\u001b[A" || data === "\r" ) {
117
+ if ( data === "\x7F " || data === "\u001b[A" || data === "\r" ) {
118
118
return ;
119
119
}
120
120
@@ -125,7 +125,7 @@ export const SetupMyTerminal = (props: {
125
125
} else {
126
126
terminal_queue . push ( data ) ;
127
127
}
128
- console . log ( `data received: ${ data } ` ) ;
128
+ // console.log(`data received: ${data}`);
129
129
} ;
130
130
131
131
// You can pass either an ITerminalAddon constructor or an instance, depending on whether you need to access it later.
You can’t perform that action at this time.
0 commit comments