def _print_menu(self): ansi.write("\r") for index, option in enumerate(self._get_window()): option = option.text option = self._adjust_width(option) ansi.write(self._decorate(option, **self._decorate_flags(index)) + "\n") ansi.clear_eol()
def _print_menu(self): self.parent._print_menu() for i in xrange(0, self.host.height - len(self.host.options)): ansi.clear_eol() ansi.write("\n") if self.text is not None: ansi.write("/" + "".join(self.text)) ansi.show_cursor() ansi.clear_eol()
def _clear_menu(self): self.parent._clear_menu() ansi.up() ansi.clear_eol()
def _clear_menu(self): ansi.restore_position() for i in xrange(self.height): ansi.clear_eol() ansi.up() ansi.clear_eol()