def render(self, stdscr): WHITE = colors.get("white") RED = colors.get("red") (X,Y) = true_terminal_size() # <---- TODO: ok? layers.add_border(self.layer, color=WHITE) self.layer.setrange(0, 0, "<quit_main>", color=WHITE) self.layer.setrange(1, 1, "Quit? (Y/N)", color=RED) layers.render_to(self.layer, stdscr, int(X//2.7), int(Y//2.7))
def render_cycle(self, stdscr): self.render_frame() self.render_GUI() layers.render_to(layers.get("main"), stdscr)