How to keep correct inline app output in terminal for Input widget? #6063
Unanswered
robvanderleek
asked this question in
Q&A
Replies: 1 comment 1 reply
-
This looks like a bug. Pressing ctrl+q to quit also results in garbled output, but only with the from textual.app import App, ComposeResult
from textual.widgets import Button, Input
class ExampleApp(App):
def compose(self) -> ComposeResult:
# yield Button("Press ctrl+q to quit")
yield Input("Press ctrl+q to quit")
if __name__ == "__main__":
app = ExampleApp()
app.run(inline=True, inline_no_clear=True) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a simple inline app (full code below) that just displays a label and waits for input:
I want to keep the content on screen after exiting, so I'm using
inline_no_clear=True
.However, after the user enters a name, the screen looks like this:
Enter your name: Rob Enter your name: Rob Hello, Rob!
I've tested other widgets, and they work fine with the
inline_no_clear=True
flag.I guess this is related to the "enter" key used for submitting input, but I don't understand what I'm doing wrong.
Code:
Beta Was this translation helpful? Give feedback.
All reactions