code: def print_menuconfig(kconf):
      
      # Print the expanded mainmenu text at the top. This is the same as
      # kconf.top_node.prompt[0], but with variable references expanded.
      print("\n======== {} ========\n".format(kconf.mainmenu_text))
  
      print_menuconfig_nodes(kconf.top_node.list, 0)
      print("")
docs: Prints all menu entries for the configuration.