added reset to TermWriteable
This commit is contained in:
@@ -166,4 +166,11 @@ class TermBuffer implements TermWriteable {
|
||||
public function isColor():Bool {
|
||||
throw new haxe.exceptions.NotImplementedException();
|
||||
}
|
||||
|
||||
public function reset() {
|
||||
this.setBackgroundColor(Black);
|
||||
this.setTextColor(White);
|
||||
this.clear();
|
||||
this.setCursorPos(0,0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user