def lpad(self, item, size, color=None):
        text = str(item)[:size]
        padlength = size - len(text)
        if (padlength < 0):
            padlength = 0
        return "%s%s" % (self.colored(color, text), " " * padlength)