13 lines
294 B
Python
Raw Normal View History

2020-11-06 15:34:24 +01:00
import curses
2020-11-06 21:15:09 +01:00
from typing import Any
2020-11-06 15:34:24 +01:00
class Display:
2020-11-08 22:59:11 +01:00
def __init__(self, screen: Any):
2020-11-06 15:34:24 +01:00
self.screen = screen
2020-11-08 22:59:11 +01:00
self.rows = curses.LINES if screen else 4
self.cols = curses.COLS * 4 // 5 if screen else 4
2020-11-06 17:43:30 +01:00
2020-11-06 21:15:09 +01:00
def refresh(self) -> None:
2020-11-08 22:59:11 +01:00
raise NotImplementedError