'@param  stdin
@param  stdout
@param  use_raw
@param  noprompt        Do we want to prompt for values upon plugin execution?
@param  completekey     Command completion'

def __init__(self, stdin=None, stdout=None, use_raw=1, noprompt=False, completekey='tab', enablecolor=True, history=4096):

    import sys
    if (stdin is not None):
        self.stdin = stdin
    else:
        self.stdin = sys.stdin
    if (stdout is not None):
        self.stdout = stdout
    else:
        self.stdout = sys.stdout
    self.stderr = self.stdout
    self.logout = DevNull()
    self.noprompt = noprompt
    self.raw_input = use_raw
    self.completekey = completekey
    self.havecolor = False
    self.enablecolor = enablecolor
    self.colormode = 'ansi'
    self.colormap = COLORIZEMAP
    self.historysize = history
