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

How to embed prompt in full screen application? #640

Open typon opened 6 years ago

typon commented 6 years ago

I want a full screen application that looks like this:

|-------------------------|
| other widgets           |
|                         |
|                         |
|                         |
|                         |
|-------------------------|
| prompt/repl             |
|_________________________| 

Is something like this possible? I can't seem to find any API calls or examples that allow this.

jonathanslenders commented 6 years ago

Hi @typon, Can you have a look at this example: https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/examples/full-screen/calculator.py ? That looks similar to what you are trying to achieve.

decentral1se commented 6 years ago

Related to https://github.com/jonathanslenders/python-prompt-toolkit/issues/652, I think.

techtonik commented 6 years ago

Should be a in FAQ, or somewhere in docs.