from colorata import Fore
choice = prompt([
{
'name': 'start',
'type': 'list',
'message': 'Which pizza would you like?',
'choices': [
'Margherita',
'Pepperoni and cheese',
'Mozzarella',
f'{Fore.RED}Exit{Fore.RESET}'
]
}
], style=default_style)['start']
why this line f'{Fore.RED}Exit{Fore.RESET}' is not interpreted? (it is represented like this ^[[31mExit^[[39m)
How can I change color on a single question?
How can I change color on different questions?
why this line
f'{Fore.RED}Exit{Fore.RESET}'
is not interpreted? (it is represented like this^[[31mExit^[[39m
) How can I change color on a single question?