def initialize_page_data(self):
        """Initialize the page data for the given screen."""
        if self.term.is_a_tty:
            self.display_initialize()
        self.character_generator = self.character_factory(self.screen.wide)
        page_data = list()
        while True:
            try:
                page_data.append(next(self.character_generator))
            except StopIteration:
                break
        if LIMIT_UCS == 0x10000:
            echo(self.term.center('press any key.').rstrip())
            flushout()
            self.term.inkey(timeout=None)
        return page_data
def initialize_page_data ( self ) : if self . term . is_a_tty : self . display_initialize ( ) self . character_generator = self . character_factory ( self . screen . wide ) page_data = list ( ) while True : try : page_data . append ( next ( self . character_generator ) ) except StopIteration : break if LIMIT_UCS == 0x10000 : echo ( self . term . center ( 'press any key.' ) . rstrip ( ) ) flushout ( ) self . term . inkey ( timeout = None ) return page_data
Initialize the page data for the given screen.