Skip to content

Commit

Permalink
Add fake procedures for clearing screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed May 14, 2024
1 parent 7719e5e commit db8f81b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions schemius-web/schemius.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ class Schemius {
"(switch-font)": Schemius.switchFont,
"(switch-theme)": Schemius.switchTheme,
"(test!)": Schemius.switchTestMode,
"(clear-screen)": Schemius.clearScreen,
"(clc)": Schemius.clearScreen,
};

static handleTouchStart(event) {
Expand Down Expand Up @@ -340,6 +342,10 @@ class Schemius {
e || Schemius.isMobile() ? setTimeout(() => apply(), 20) : apply();
}

static clearScreen() {
Schemius.terminal.clear();
}

static initTerminal() {
Schemius.setFont(Schemius.defaultFont);
Schemius.setTheme(Schemius.defaultTheme);
Expand Down

0 comments on commit db8f81b

Please sign in to comment.