clear method
Clears the entire buffer to a uniform background color.
Resets all cells, clearing existing characters and formatting.
Example:
buffer.clear(Color.black); // Clear to black background
buffer.clear(Color.transparent); // Clear to transparent
Implementation
void clear(Color bg) {
_checkValid();
_bindings.bufferClear(_ptr, bg);
}