Skip to content

Commit

Permalink
Remove logging of terminal buffer to console
Browse files Browse the repository at this point in the history
Every input is logged to the console for the
default terminal.

This patch removes the key logs.

Signed-off-by: Niraj Yadav <[email protected]>
  • Loading branch information
black-dragon74 committed Aug 6, 2024
1 parent 109222f commit 4d71a44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/src/components/Terminal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ export default {
mainTerminalConfig() {
this.terminal.onKey(e => {
const code = e.key.charCodeAt(0);
console.debug("Encode: " + JSON.stringify(e.key));
if (e.key === "\r") {
// Return if no input
Expand Down Expand Up @@ -201,7 +200,6 @@ export default {
} else {
this.cursorPosition++;
this.terminalInputBuffer += e.key;
console.log(this.terminalInputBuffer);
this.terminal.write(e.key);
}
});
Expand Down

0 comments on commit 4d71a44

Please sign in to comment.