Compare commits

...

2 commits

Author SHA1 Message Date
Niraj Yadav
947f40a033
Merge 4d71a44d5b into a65a9f5549 2024-12-31 13:04:32 -05:00
Niraj Yadav
4d71a44d5b 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>
2024-08-06 09:46:41 +05:30

View file

@ -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
@ -201,7 +200,6 @@ export default {
} else {
this.cursorPosition++;
this.terminalInputBuffer += e.key;
console.log(this.terminalInputBuffer);
this.terminal.write(e.key);
}
});