this is a dummy example of what I would like to achieve in my real code. I'm using the Beaupy module to nicely select items from a list within a rich console. As you can see, as soon as I run the code, the terminal window is completely broken.
import beaupy
from rich.console import Console
from rich.layout import Layout
from rich.live import Live
fruits = ["Apple", "Banana", "Cherry", "Date", "Elderberry", "Fig", "Grape"]
console = Console()
layout = Layout()
selected_items = []
with Live(layout, console=console, screen=True, refresh_per_second=4):
# Use beaupy to select multiple items
selected_items = beaupy.select_multiple(fruits)
Dear all,
this is a dummy example of what I would like to achieve in my real code. I'm using the Beaupy module to nicely select items from a list within a rich console. As you can see, as soon as I run the code, the terminal window is completely broken.
Platform
Click to expand
╭─────────────────────────