def set_screen_size(self):
height, width = self.getheightwidth()<EOL>curses.resizeterm(height, width)<EOL>self.pad_x = <NUM_LIT:0><EOL>self.max_y, self.max_x = (height-<NUM_LIT:1>, width-<NUM_LIT:1>)<EOL>self.pad_h = height-<NUM_LIT:3><EOL>self.pad_w = width-<NUM_LIT:2>*self.pad_x<EOL>
Setup screen size and padding

        We have need 2 free lines at the top and 2 free lines at the bottom