tmbo / questionary

Python library to build pretty command line user prompts ✨Easy to use multi-select lists, confirmations, free text prompts ...
MIT License
1.52k stars 87 forks source link

Color of answer for text prompt doesn't change #45

Closed falkyre closed 3 years ago

falkyre commented 4 years ago

I've just switched over from PyInquirer to questionary and it was a seamless transition. Kudos to you for creating questionary. One thing I noticed under PyInquirer and a text prompt is that when I get the answer, the answer is high lighted in a different color. Under questionary, that color doesn't change. Am I missing something? I would think that the answer should be able to be styled as the other prompts but I can't get it working no matter what I do.

Thanks.

falkyre commented 4 years ago

One of left is Questionary and one on right is PyInquirer. The line When do you want the end of the day to be?. I'd like the answer to be the same color as the question above it Screen Shot 2020-03-11 at 3 32 03 PM

nmstoker commented 4 years ago

This also happens with the results from an "autocomplete" question. Think it's the same cause (not applying the answer style to the final response, although in the autocomplete I also think styling is slightly off in general, as answer is used to style the drop-down, which is not the way I think most people would expect)

kiancross commented 4 years ago

Here is an example:

import questionary

questionary.select(
    "Select an option",
    choices = ["foo", "bar"]
).ask()

questionary.text("Write some text").ask()