def display_menu(stdscr, menu_y):
 erase_menu(stdscr, menu_y)
 stdscr.addstr(menu_y, 4, 'Use the cursor keys to move, and space or Enter to toggle a cell.')
 stdscr.addstr((menu_y + 1), 4, 'E)rase the board, R)andom fill, S)tep once or C)ontinuously, Q)uit')

def display_menu ( stdscr , menu_y ) : erase_menu ( stdscr , menu_y ) stdscr . addstr ( menu_y , 4 , 'Use the cursor keys to move, and space or Enter to toggle a cell.' ) stdscr . addstr ( ( menu_y + 1 ) , 4 , 'E)rase the board, R)andom fill, S)tep once or C)ontinuously, Q)uit' )
display the menu of possible keystroke commands .