'Fill Rectangle.'

def rectangle(self, rect, attr=None, fill='    '):

    log_sock(('rect:%s' % [rect]))
    (x0, y0, x1, y1) = rect
    n = c_int(0)
    if (attr is None):
        attr = self.attr
    for y in range(y0, y1):
        pos = self.fixcoord(x0, y)
        self.FillConsoleOutputAttribute(self.hout, attr, (x1 - x0), pos, byref(n))
        self.FillConsoleOutputCharacterA(self.hout, ord(fill[0]), (x1 - x0), pos, byref(n))
