Remove logging of terminal buffer to console

Every input is logged to the console for the
default terminal.

This patch removes the key logs.

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
This commit is contained in:
Niraj Yadav 2024-08-06 09:46:41 +05:30
parent 109222f024
commit 4d71a44d5b

View file

@ -164,7 +164,6 @@ export default {
mainTerminalConfig() { mainTerminalConfig() {
this.terminal.onKey(e => { this.terminal.onKey(e => {
const code = e.key.charCodeAt(0); const code = e.key.charCodeAt(0);
console.debug("Encode: " + JSON.stringify(e.key));
if (e.key === "\r") { if (e.key === "\r") {
// Return if no input // Return if no input
@ -201,7 +200,6 @@ export default {
} else { } else {
this.cursorPosition++; this.cursorPosition++;
this.terminalInputBuffer += e.key; this.terminalInputBuffer += e.key;
console.log(this.terminalInputBuffer);
this.terminal.write(e.key); this.terminal.write(e.key);
} }
}); });