(self)
Print the above banner and copyight notice
Print the above banner and copyight notice
Print the above banner and copyight notice
def banner(self):
        """
        Print the above banner and copyight notice
        """
        bannerlines = banner.split('\n')
        for idx, line in enumerate(bannerlines):
            self.screen.addstr(2+idx, 1, line.center(self.width-2), curses.color_pair(3))
        start = bannerlines[2].center(self.width-2).index('|')+1
        self.screen.addstr(1+idx, start, copyrightlhs, curses.color_pair(1))
        self.screen.addstr(1+idx, start+len(copyrightlhs)+7, copyrightrhs, curses.color_pair(1))
        self.screen.addstr(2+idx, start, url.rjust(len(bannerlines[2])), curses.color_pair(4))
def banner ( self ) : bannerlines = banner . split ( '\n' ) for idx , line in enumerate ( bannerlines ) : self . screen . addstr ( 2 + idx , 1 , line . center ( self . width - 2 ) , curses . color_pair ( 3 ) ) start = bannerlines [ 2 ] . center ( self . width - 2 ) . index ( '|' ) + 1 self . screen . addstr ( 1 + idx , start , copyrightlhs , curses . color_pair ( 1 ) ) self . screen . addstr ( 1 + idx , start + len ( copyrightlhs ) + 7 , copyrightrhs , curses . color_pair ( 1 ) ) self . screen . addstr ( 2 + idx , start , url . rjust ( len ( bannerlines [ 2 ] ) ) , curses . color_pair ( 4 ) )