# Path: opc/drivers/baseclass.py
# class RopDriver(object):
# 
#     def __init__(self, width, height, address):
#         raise NotImplementedError
# 
#     def send(self, packet):
#         raise NotImplementedError
# 
#     def putPixels(self, channel, *sources):
#         raise NotImplementedError
# 
#     def setFirmwareConfig(self, nodither=False, nointerp=False,
#                           manualled=False, ledonoff=True):
#         raise NotImplementedError
# 
#     def setGlobalColorCorrection(self, gamma, r, g, b):
#         raise NotImplementedError
# 
#     def terminate(self):
#         raise NotImplementedError
# 
# Path: opc/utils/prof.py
# def timefunc(f, reference=False):
#     global records
# 
#     records[f.__name__] = Record(f.__name__, reference)
# 
#     @wraps(f)
#     def f_timer(*args, **kwargs):
#         global active
# 
#         if not active:
#             return f(*args, **kwargs)
# 
#         start = time.time()
#         result = f(*args, **kwargs)
#         end = time.time()
# 
#         records[f.__name__].addTime(end-start)
# 
#         return result
# 
#     return f_timer


import curses
import numpy as np
from opc.drivers.baseclass import RopDriver
from opc.error import TtyTooSmall
from opc.utils.prof import timefunc
from __future__ import division



stdscr = None  # for flake8


def initCurses():
    global stdscr


# Path: opc/drivers/baseclass.py
# class RopDriver(object):
# 
#     def __init__(self, width, height, address):
#         raise NotImplementedError
# 
#     def send(self, packet):
#         raise NotImplementedError
# 
#     def putPixels(self, channel, *sources):
#         raise NotImplementedError
# 
#     def setFirmwareConfig(self, nodither=False, nointerp=False,
#                           manualled=False, ledonoff=True):
#         raise NotImplementedError
# 
#     def setGlobalColorCorrection(self, gamma, r, g, b):
#         raise NotImplementedError
# 
#     def terminate(self):
#         raise NotImplementedError
# 
# Path: opc/utils/prof.py
# def timefunc(f, reference=False):
#     global records
# 
#     records[f.__name__] = Record(f.__name__, reference)
# 
#     @wraps(f)
#     def f_timer(*args, **kwargs):
#         global active
# 
#         if not active:
#             return f(*args, **kwargs)
# 
#         start = time.time()
#         result = f(*args, **kwargs)
#         end = time.time()
# 
#         records[f.__name__].addTime(end-start)
# 
#         return result
# 
#     return f_timer


# Path: opc/drivers/ansi.py
import curses
import numpy as np
from opc.drivers.baseclass import RopDriver
from opc.error import TtyTooSmall
from opc.utils.prof import timefunc

from __future__ import division



stdscr = None  # for flake8


def initCurses():
    global stdscr


    stdscr = curses.initscr()