'Scroll a rectangle.'

def scroll(self, rect, dx, dy, attr=None, fill='    '):

    if (attr is None):
        attr = self.attr
    (x0, y0, x1, y1) = rect
    source = SMALL_RECT(x0, y0, (x1 - 1), (y1 - 1))
    dest = self.fixcoord((x0 + dx), (y0 + dy))
    style = CHAR_INFO()
    style.Char.AsciiChar = fill[0]
    style.Attributes = attr
    return self.ScrollConsoleScreenBufferA(self.hout, byref(source), byref(source), dest, byref(style))
