summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEvan Welsh <contact@evanwelsh.com>2021-06-29 01:07:13 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2021-08-16 20:31:59 -0700
commite24c054839170a1c08d130120ca2a5ea3c913198 (patch)
tree2c5ea122174249d7cd102fa6fa34f6a4006c276f /modules
parentf06a570a069409ad0ebfd163fe1de263d898d09e (diff)
downloadgjs-e24c054839170a1c08d130120ca2a5ea3c913198.tar.gz
modules: Implement console.clear()
Diffstat (limited to 'modules')
-rw-r--r--modules/esm/console.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/esm/console.js b/modules/esm/console.js
index 152df43c..bdbfc69d 100644
--- a/modules/esm/console.js
+++ b/modules/esm/console.js
@@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2021 Evan Welsh <contact@evanwelsh.com>
import GLib from 'gi://GLib';
+import GjsPrivate from 'gi://GjsPrivate';
const sLogger = Symbol('Logger');
const sPrinter = Symbol('Printer');
@@ -150,6 +151,7 @@ class Console {
*/
clear() {
this[sGroupIndentation] = '';
+ GjsPrivate.clear_terminal();
}
/**