The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
It looks like the inline_no_clear option was broken in v0.77.0, from a quick git bisect the culprit seems to be commit 8c01ef7.
If you run the app below where inline_no_clear=True, the app output is cleared on exit:
from textual.app import App, ComposeResult
from textual.widgets import Static
class InlineNoClearApp(App):
def compose(self) -> ComposeResult:
yield Static("Quitting should not clear the app output")
if __name__ == "__main__":
app = InlineNoClearApp()
app.run(inline=True, inline_no_clear=True)
It looks like the
inline_no_clear
option was broken in v0.77.0, from a quick git bisect the culprit seems to be commit 8c01ef7.If you run the app below where
inline_no_clear=True
, the app output is cleared on exit: