def __init__(self, args):
        """
            Create a terminal based on the term argument
        """
        if args.term == "null":
            self.loaded = False
            return
        BasePlugin.__init__(self)
        self.time = None
        sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "terminals")))
        try:
            terminal = importlib.import_module(args.term + "_terminal")
        except __HOLE__ as e:
            print("Terminal %s not available: %s" % (args.term, e))
            raise SystemExit
        self.debug = args.debug

        m = re.match(r"(\d+)x(\d+)", args.geometry)
        if m is None:
            print("Invalid geometry `%s`" % args.geometry)
            args.width, args.height = 80, 24
        else:
            args.width = int(m.group(1))
            args.height = int(m.group(2))

        self.term = terminal.Terminal(args)
        self.name += "-%s" % args.term
        self.term.show()
dataset/ETHPy150Open jtauber/dcpu16py/plugins/terminalplugin.py/TerminalPlugin.__init__