INNER CODE UNIT · Python
print_menu
hovanhoa/cursor-free-vip · main.py:251
def print_menu():
"""Print menu options"""
try:
config = get_config()
if config.getboolean('Utils', 'enabled_account_info'):
import cursor_acc_info
cursor_acc_info.display_account_info(translator)
except Exception as e:
print(f"{Fore.YELLOW}{EMOJI['INFO']} {translator.get('menu.account_info_error', error=str(e))}{Style.RESET_ALL}")
print(f"\n{Fore.CYAN}{EMOJI['MENU']} {translator.get('menu.title')}:{Style.RESET_ALL}")
if translator.current_language == 'zh_cn' or translator.current_language == 'zh_tw':
print(f"{Fore.YELLOW}{'─' * 70}{Style.RESET_ALL}")
else:
print(f"{Fore.YELLOW}{'─' * 110}{Style.RESET_ALL}")
# Get terminal width
try: