mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
Add ns.ui.clearTerminal for 0.2 GB
This commit is contained in:
@@ -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();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user