'Draw the top-line banner line.'

def draw_bannerwin(self):

    if curses.has_colors():
        color = (curses.A_BOLD | self.curses_colorpair('banner'))
    else:
        color = curses.A_REVERSE
    self.bannerwin.clear()
    self.bannerwin.bkgd('    ', color)
    string = ('%s    %s' % (offlineimap.__productname__, offlineimap.__version__))
    spaces = ('    ' * max(1, (((self.width - len(offlineimap.__copyright__)) - len(string)) - 1)))
    string = ('%s%s%s' % (string, spaces, offlineimap.__copyright__))
    self.bannerwin.addnstr(0, 0, string, (self.width - 1), color)
    self.bannerwin.noutrefresh()
