'Set display attributes.
:param list attrs: a list of display attributes to set.'

def select_graphic_rendition(self, *attrs):

    replace = {}
    for attr in (attrs or [0]):
        if (attr in g.FG):
            replace[u'fg'] = g.FG[attr]
        elif (attr in g.BG):
            replace[u'bg'] = g.BG[attr]
        elif (attr in g.TEXT):
            attr = g.TEXT[attr]
            replace[attr[1:]] = attr.startswith(u'+')
        elif (not attr):
            replace = self.default_char._asdict()
    self.cursor.attrs = self.cursor.attrs._replace(**replace)
