19 lines
388 B
Python
19 lines
388 B
Python
|
|
import platform
|
||
|
|
from .display import Display
|
||
|
|
|
||
|
|
if platform.system() in ("Linux", "Darwin", "Unix"):
|
||
|
|
from .unix import *
|
||
|
|
|
||
|
|
|
||
|
|
class BasicDisplay(Display):
|
||
|
|
"""
|
||
|
|
A basic display that should be supported on all platforms. It just outputs
|
||
|
|
text with some color.
|
||
|
|
"""
|
||
|
|
|
||
|
|
def line(self, line: str = ""):
|
||
|
|
print(line)
|
||
|
|
|
||
|
|
def input(self) -> str:
|
||
|
|
return input("> ")
|