added reset to TermWriteable

This commit is contained in:
2022-03-03 15:44:32 +01:00
parent 242db10083
commit daff654867
5 changed files with 30 additions and 0 deletions

View File

@@ -94,4 +94,11 @@ class MainTerm implements TermWriteable {
public function isColor():Bool {
return Term.isColor();
}
public function reset() {
this.setBackgroundColor(Black);
this.setTextColor(White);
this.clear();
this.setCursorPos(0,0);
}
}