def CONSOLE(path: str, method: str, buffer: list=None, value: str=None):
    """Direct IO to the console."""
    if method == 'r':
        return input(), buffer
    if method == 'w':
        print(value, end='')
