clear method
Clears the terminal screen.
Implementation
@override
void clear() {
for (int y = 0; y < _height; y++) {
for (int x = 0; x < _width; x++) {
_grid[y][x] = ' ';
}
}
}
Clears the terminal screen.
@override
void clear() {
for (int y = 0; y < _height; y++) {
for (int x = 0; x < _width; x++) {
_grid[y][x] = ' ';
}
}
}