Add ns.ui.clearTerminal for 0.2 GB

This commit is contained in:
Zoë Hoekstra
2022-05-06 12:29:21 +02:00
parent b46718d188
commit 472c9778df
3 changed files with 15 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import { defaultTheme } from "../Themes/Themes";
import { defaultStyles } from "../Themes/Styles";
import { CONSTANTS } from "../Constants";
import { hash } from "../hash/hash";
import { Terminal } from "../../src/Terminal";
export function NetscriptUserInterface(
player: IPlayer,
@@ -108,5 +109,10 @@ export function NetscriptUserInterface(
return gameInfo;
},
clearTerminal: function (): void {
updateRam("clearTerminal");
Terminal.clear();
},
};
}