(self, args)
COLOR: set colour attributes.
COLOR: set colour attributes.
COLOR : set colour attributes .
def color_(self, args):
        """COLOR: set colour attributes."""
        args = list(args)
        error.throw_if(len(args) > 3)
        args += [None] * (3 - len(args))
        arg0, arg1, arg2 = args
        arg0 = arg0 and values.to_int(arg0)
        arg1 = arg1 and values.to_int(arg1)
        arg2 = arg2 and values.to_int(arg2)
        attr, border = self.colourmap.color(self.attr, arg0, arg1, arg2)
        if attr is not None:
            self.set_attr(attr)
        if border is not None:
            self.set_border(border)
def color_ ( self , args ) : args = list ( args ) error . throw_if ( len ( args ) > 3 ) args += [ None ] * ( 3 - len ( args ) ) arg0 , arg1 , arg2 = args arg0 = arg0 and values . to_int ( arg0 ) arg1 = arg1 and values . to_int ( arg1 ) arg2 = arg2 and values . to_int ( arg2 ) attr , border = self . colourmap . color ( self . attr , arg0 , arg1 , arg2 ) if attr is not None : self . set_attr ( attr ) if border is not None : self . set_border ( border )