add reset

This commit is contained in:
Eggert Jung
2025-04-18 23:34:09 +02:00
parent a84d23af31
commit 152ed507fd
2 changed files with 6 additions and 3 deletions

View File

@@ -61,6 +61,8 @@ void TextWindow::print(const char* str, size_t length, CGA::Attribute attrib) {
}
void TextWindow::reset(char character, CGA::Attribute attrib) {
(void)character;
(void)attrib;
for(unsigned i=from_row; i<to_row; i++)
for(unsigned j=from_col; j<to_col; j++)
CGA::show(j, i, character, attrib);
setPos(0, 0);
}