Skip to content

Commit 268f73e

Browse files
committed
Remove console log statements for cleaner terminal setup
1 parent 83f4cd0 commit 268f73e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

page/src/xterm.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const SetupMyTerminal = (props: {
9090
event: { key: string; domEvent: KeyboardEvent },
9191
terminal,
9292
) => {
93-
console.log(event);
93+
// console.log(event);
9494

9595
if (event.key === "\r") {
9696
terminal.write("\r\n");
@@ -114,7 +114,7 @@ export const SetupMyTerminal = (props: {
114114
};
115115
const onData = (data: string) => {
116116
// if Backspace, ArrowUp: do nothing
117-
if (data === "\b" || data === "\u001b[A" || data === "\r") {
117+
if (data === "\x7F" || data === "\u001b[A" || data === "\r") {
118118
return;
119119
}
120120

@@ -125,7 +125,7 @@ export const SetupMyTerminal = (props: {
125125
} else {
126126
terminal_queue.push(data);
127127
}
128-
console.log(`data received: ${data}`);
128+
// console.log(`data received: ${data}`);
129129
};
130130

131131
// You can pass either an ITerminalAddon constructor or an instance, depending on whether you need to access it later.

0 commit comments

Comments
 (0)