prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.37k stars 716 forks source link

true_color=True, color_depth=... #741

Open 2sn opened 6 years ago

2sn commented 6 years ago

following https://python-prompt-toolkit.readthedocs.io/en/2.0.5/pages/asking_for_input.html the line

text = prompt(message, style=style, true_color=True)

does not know about the true_color keyword. Also, when I use color_depth=24 instead, my ipython session dies.

jonathanslenders commented 6 years ago

Hi @2sn,

The values for color depth are coming from this enumeration: https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/prompt_toolkit/output/color_depth.py#L10

prompt('>', color_depth='DEPTH_24_BIT')

However, it's good to know that you were thinking about passing an integer. That makes sense actually, so maybe this is something we have to support.