Added code to clear the text

This commit is contained in:
anthony 2023-09-22 10:33:42 -05:00
parent 19ee4b0553
commit 75fa2026c0
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) {
}; };
TextView.prototype.clearText = function () { TextView.prototype.clearText = function () {
if (this.text) {
this.setText(this.fillChar.repeat(this.text.length));
}
this.setText(''); this.setText('');
}; };