Add possibility to define the background color of entities (black in ASCII, white in Unicode)
This commit is contained in:
@ -19,6 +19,13 @@ class Display:
|
||||
def newpad(self, height: int, width: int) -> Union[FakePad, Any]:
|
||||
return curses.newpad(height, width) if self.screen else FakePad()
|
||||
|
||||
def init_pair(self, number: int, foreground: int, background: int) -> None:
|
||||
return curses.init_pair(number, foreground, background) \
|
||||
if self.screen else None
|
||||
|
||||
def color_pair(self, number: int) -> int:
|
||||
return curses.color_pair(number) if self.screen else 0
|
||||
|
||||
def resize(self, y: int, x: int, height: int, width: int) -> None:
|
||||
self.x = x
|
||||
self.y = y
|
||||
|
Reference in New Issue
Block a user