LNXSDK/leenkx/Sources/leenkx/logicnode/ClearConsoleNode.hx
2025-01-22 16:18:30 +01:00

20 lines
297 B
Haxe

package leenkx.logicnode;
class ClearConsoleNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function run(from: Int) {
#if kha_krom
Krom.sysCommand("cls");
#elseif kha_html5
js.Syntax.code("console.clear();");
#end
runOutput(0);
}
}