-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prompt in full screen application #652
Comments
Hi @Tagej, The It should look something like this: from prompt_toolkit.application import run_coroutine_in_terminal
from prompt_toolkit.shortcuts import prompt
def display_prompt_in_app():
future = run_coroutine_in_terminal(prompt('>', async_=True)) The If you want to display an input field on top of the full screen application, then you can for instance consider using a Notice that the |
Hi @jonathanslenders from prompt_toolkit import prompt key_bindings = KeyBindings() It raised an exception when I pressed control S. Try it out yourself. |
Hey, I think I'd just like to chime in here and say that I am also building a full screen application (thanks for all the good work to get us here, it's a really nice API so far!) and that I want the full featured |
Ah, I do see that we have https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/prompt_toolkit/widgets/base.py#L87-L88 which can get me moving along for now. Sorry for the noise. |
Ah, here is an example which shows you how to build up your own widget that you can control the |
My solution to this is @jonathanslenders TextArea/input field suggestion:
Layout like this:
Inside filterTable function you can read user input with input_field.text attribute |
Hi!
I want to create a full screen application. Then I want to ask the user for some input at some point in my code. I want to use the prompt function. It seems to me that I can't do that. I've tried run_in_terminal, but it doesn't worked in this case.
Is it possible to do that?
Tage!
The text was updated successfully, but these errors were encountered: