""" Multi display backend - forwards to multiple displays. """ class MultiDisplay: """Display that forwards to multiple displays.""" width: int = 80 height: int = 24 def __init__(self, displays: list): self.displays = displays self.width = 80 self.height = 24 def init(self, width: int, height: int) -> None: self.width = width self.height = height for d in self.displays: d.init(width, height) def show(self, buffer: list[str]) -> None: for d in self.displays: d.show(buffer) def clear(self) -> None: for d in self.displays: d.clear() def cleanup(self) -> None: for d in self.displays: d.cleanup()