parameters: (stdscr, menu_y)
docstring: Display the menu of possible keystroke commands
docstring_summary: Display the menu of possible keystroke commands
docstring_tokens: Display the menu of possible keystroke commands
function: def display_menu(stdscr, menu_y):
      "Display the menu of possible keystroke commands"
      erase_menu(stdscr, menu_y)
  
      # If color, then light the menu up :-)
      if curses.has_colors():
          stdscr.attrset(curses.color_pair(1))
      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')
      stdscr.attrset(0)
function_tokens: def display_menu ( stdscr , menu_y ) : erase_menu ( stdscr , menu_y ) # If color, then light the menu up :-) if curses . has_colors ( ) : stdscr . attrset ( curses . color_pair ( 1 ) ) 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' ) stdscr . attrset ( 0 )