added reset to TermWriteable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user