Skip to content

Commit 45ef0db

Browse files
committed
clear terminal buffers when "clear console" is clicked
fixes: #454
1 parent 0b90c9b commit 45ef0db

File tree

1 file changed

+2
-2
lines changed
  • pgmanage/app/static/assets/js/pgmanage_frontend/src/components

1 file changed

+2
-2
lines changed

pgmanage/app/static/assets/js/pgmanage_frontend/src/components/ConsoleTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export default {
351351
}
352352
},
353353
clearConsole() {
354-
this.terminal.write("\x1b[H\x1b[2J");
354+
this.terminal.clear();
355355
this.terminal.write(this.consoleHelp);
356356
},
357357
indentSQL() {
@@ -360,7 +360,7 @@ export default {
360360
cancelConsoleTab() {
361361
clearInterval(this.queryInterval);
362362
this.queryInterval = null;
363-
363+
364364
this.readOnlyEditor = false;
365365
366366
this.consoleState = requestState.Idle;

0 commit comments

Comments
 (0)