diff --git a/docs/guide/app.md b/docs/guide/app.md index 9610f4589..aea0235ca 100644 --- a/docs/guide/app.md +++ b/docs/guide/app.md @@ -40,6 +40,8 @@ If you hit ++ctrl+c++ Textual will exit application mode and return you to the c #### Run inline +!!! tip "Added in version 0.45.0" + You can also run apps in _inline_ mode, which will cause the app to appear beneath the prompt (and won't go in to application mode). Inline apps are useful for tools that integrate closely with the typical workflow of a terminal. diff --git a/examples/calculator.py b/examples/calculator.py index 9c8f2f9e7..8f6442ebe 100644 --- a/examples/calculator.py +++ b/examples/calculator.py @@ -168,4 +168,4 @@ class CalculatorApp(App): if __name__ == "__main__": - CalculatorApp().run() + CalculatorApp().run(inline=True) diff --git a/src/textual/demo.py b/src/textual/demo.py index 2b3af4c05..5d2a67d74 100644 --- a/src/textual/demo.py +++ b/src/textual/demo.py @@ -393,4 +393,4 @@ class DemoApp(App[None]): app = DemoApp() if __name__ == "__main__": - app.run(inline=True) + app.run()