### Install Rich Menu Source: https://github.com/gbpagano/rich_menu/blob/main/README.md Installs the Rich Menu library using pip. This is the first step to using the library for creating CLI menus. ```bash pip install rich-menu ``` -------------------------------- ### Basic Menu Creation and Interaction Source: https://github.com/gbpagano/rich_menu/blob/main/README.md Demonstrates how to create a simple menu with options and handle user selections using a match-case statement. It requires importing the Menu class from the rich_menu library. ```python from rich_menu import Menu menu = Menu( "Option 1", "Option 2", "Option 3", "Exit", ) match menu.ask(): case "Option 1": print("first option selected") case "Option 2": print("second option selected") case "Option 3": print("third option selected") case "Exit": exit() ``` -------------------------------- ### Advanced Menu Customization Source: https://github.com/gbpagano/rich_menu/blob/main/README.md Shows how to customize the appearance and behavior of a Rich Menu, including setting colors, titles, alignment, and selection characters. The `ask` method can also be configured with `screen=False`. ```python from rich_menu import Menu menu = Menu( "X", "O", color="blue", rule_title="Tic Tac Toe", align="center", panel_title="Choose your icon", selection_char=">-", ) selected = menu.ask(screen=False) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.