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